Commit 3afcddcf authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit 'c8f0b20b'

* commit 'c8f0b20b':
  avidec: Let the inner dv demuxer take care of discarding
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents d7812209 c8f0b20b
......@@ -1084,9 +1084,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);
avio_skip(pb, size);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment