mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-01 20:42:19 +00:00
avformat/avidec: fix handling dv in avi
Fixes Ticket4086 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
ab922f9ef1
commit
f0ae0354d3
@ -1150,7 +1150,7 @@ start_sync:
|
|||||||
goto 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) &&
|
if (!((i - avi->last_pkt_pos) & 1) &&
|
||||||
get_stream_idx(d + 1) < s->nb_streams)
|
get_stream_idx(d + 1) < s->nb_streams)
|
||||||
@ -1162,6 +1162,9 @@ start_sync:
|
|||||||
goto start_sync;
|
goto start_sync;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (avi->dv_demux && n != 0)
|
||||||
|
continue;
|
||||||
|
|
||||||
// parse ##dc/##wb
|
// parse ##dc/##wb
|
||||||
if (n < s->nb_streams) {
|
if (n < s->nb_streams) {
|
||||||
AVStream *st;
|
AVStream *st;
|
||||||
|
Loading…
Reference in New Issue
Block a user