[FFmpeg-cvslog] avformat/avidec: fix handling dv in avi

Michael Niedermayer git at videolan.org
Fri Nov 21 10:29:27 CET 2014


ffmpeg | branch: release/2.3 | Michael Niedermayer <michaelni at gmx.at> | Fri Nov 21 03:08:20 2014 +0100| [b6ff3acafcc90a21f9927e23752efcde56a1ebad] | committer: Carl Eugen Hoyos

avformat/avidec: fix handling dv in avi

Fixes Ticket4086

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
(cherry picked from commit f0ae0354d3f04c369257c2a28557524d28c5df15)

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b6ff3acafcc90a21f9927e23752efcde56a1ebad
---

 libavformat/avidec.c |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/libavformat/avidec.c b/libavformat/avidec.c
index 8c70649..6536991 100644
--- a/libavformat/avidec.c
+++ b/libavformat/avidec.c
@@ -1141,7 +1141,7 @@ start_sync:
             goto start_sync;
         }
 
-        n = avi->dv_demux ? 0 : get_stream_idx(d);
+        n = get_stream_idx(d);
 
         if (!((i - avi->last_pkt_pos) & 1) &&
             get_stream_idx(d + 1) < s->nb_streams)
@@ -1153,6 +1153,9 @@ start_sync:
             goto start_sync;
         }
 
+        if (avi->dv_demux && n != 0)
+            continue;
+
         // parse ##dc/##wb
         if (n < s->nb_streams) {
             AVStream *st;



More information about the ffmpeg-cvslog mailing list