[FFmpeg-cvslog] avformat/avidec: fix handling dv in avi
Michael Niedermayer
git at videolan.org
Fri Nov 21 10:29:33 CET 2014
ffmpeg | branch: release/2.4 | Michael Niedermayer <michaelni at gmx.at> | Fri Nov 21 03:08:20 2014 +0100| [944570906b7433846352cbb14730e96e94d232ab] | 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=944570906b7433846352cbb14730e96e94d232ab
---
libavformat/avidec.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/libavformat/avidec.c b/libavformat/avidec.c
index 5b260e2..a73bf98 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