The only sample we have has only intra frames. With more than
one thread the timestamp guessing code manages to break timestamps.
Setting dts prevents this and is still correct assuming files in
this format have only intra frames.
---
libavformat/iv8.c | 2 +-
tests/ref/fate/iv8-demux | 50 +++++++++++++++++++++++-----------------------
2 files changed, 26 insertions(+), 26 deletions(-)
diff --git a/libavformat/iv8.c b/libavformat/iv8.c
index d036636..af58764 100644
--- a/libavformat/iv8.c
+++ b/libavformat/iv8.c
@@ -85,7 +85,7 @@ static int read_packet(AVFormatContext *s, AVPacket *pkt)
if (ret < 0)
return ret;
first_pkt = 1;
- pkt->pts = pts;
+ pkt->dts = pts;
pkt->pos -= 16;
} else {
ret = av_append_packet(s->pb, pkt, size);
diff --git a/tests/ref/fate/iv8-demux b/tests/ref/fate/iv8-demux
index 87217f9..f5f0cbc 100644
--- a/tests/ref/fate/iv8-demux
+++ b/tests/ref/fate/iv8-demux
@@ -1,25 +1,25 @@
-0, 0, 20883, 0x347191e2
-0, 0, 20882, 0xe1573905
-0, 3600, 20894, 0xd54f516a
-0, 7200, 20891, 0x1b5c5039
-0, 10800, 20883, 0x8e785b4d
-0, 14400, 20870, 0xd26ca1f6
-0, 18000, 21448, 0x946f5b2b
-0, 21600, 21433, 0xb18687c5
-0, 25200, 20865, 0xc0eb3fce
-0, 28800, 20842, 0x9d0728ba
-0, 32399, 20878, 0xf60f5dee
-0, 35999, 20866, 0x3bde568f
-0, 39600, 20884, 0x22736993
-0, 43200, 20860, 0xf56f2fca
-0, 46800, 20872, 0xf39e3cb3
-0, 50400, 20835, 0xa3c4363b
-0, 53999, 20905, 0x552853d1
-0, 57600, 20874, 0xed0b91ec
-0, 61200, 20877, 0xe1623e01
-0, 64799, 20933, 0x19906564
-0, 68399, 20891, 0x3d064fd3
-0, 72000, 20834, 0xcb774dbc
-0, 75600, 20870, 0xbc536589
-0, 79200, 21421, 0xc99a68e4
-0, 82800, 12869, 0x5684e304
+0, 847765931, 20883, 0x347191e2
+0, 847769531, 20882, 0xe1573905
+0, 847773131, 20894, 0xd54f516a
+0, 847776731, 20891, 0x1b5c5039
+0, 847780331, 20883, 0x8e785b4d
+0, 847783931, 20870, 0xd26ca1f6
+0, 847787531, 21448, 0x946f5b2b
+0, 847791131, 21433, 0xb18687c5
+0, 847794731, 20865, 0xc0eb3fce
+0, 847798330, 20842, 0x9d0728ba
+0, 847801930, 20878, 0xf60f5dee
+0, 847805531, 20866, 0x3bde568f
+0, 847809131, 20884, 0x22736993
+0, 847812731, 20860, 0xf56f2fca
+0, 847816331, 20872, 0xf39e3cb3
+0, 847819930, 20835, 0xa3c4363b
+0, 847823531, 20905, 0x552853d1
+0, 847827131, 20874, 0xed0b91ec
+0, 847830730, 20877, 0xe1623e01
+0, 847834330, 20933, 0x19906564
+0, 847837931, 20891, 0x3d064fd3
+0, 847841531, 20834, 0xcb774dbc
+0, 847845131, 20870, 0xbc536589
+0, 847848731, 21421, 0xc99a68e4
+0, 847852331, 12869, 0x5684e304
--
1.7.7.1
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel