mirror of https://git.ffmpeg.org/ffmpeg.git
avidec: Let the inner dv demuxer take care of discarding
CC: libav-stable@libav.org
This commit is contained in:
parent
10aa44aa67
commit
c8f0b20b4a
|
@ -984,9 +984,12 @@ start_sync:
|
|||
}
|
||||
}
|
||||
|
||||
if ((st->discard >= AVDISCARD_DEFAULT && size == 0)
|
||||
/* || (st->discard >= AVDISCARD_NONKEY && !(pkt->flags & AV_PKT_FLAG_KEY)) */ // FIXME: needs a little reordering
|
||||
|| st->discard >= AVDISCARD_ALL) {
|
||||
if (!avi->dv_demux &&
|
||||
((st->discard >= AVDISCARD_DEFAULT && size == 0) /* ||
|
||||
// FIXME: needs a little reordering
|
||||
(st->discard >= AVDISCARD_NONKEY &&
|
||||
!(pkt->flags & AV_PKT_FLAG_KEY)) */
|
||||
|| st->discard >= AVDISCARD_ALL)) {
|
||||
if (!exit_early) {
|
||||
ast->frame_offset += get_duration(ast, size);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue