Commit c8f0b20b authored by Luca Barbato's avatar Luca Barbato

avidec: Let the inner dv demuxer take care of discarding

CC: libav-stable@libav.org
parent 10aa44aa
...@@ -984,9 +984,12 @@ start_sync: ...@@ -984,9 +984,12 @@ start_sync:
} }
} }
if ((st->discard >= AVDISCARD_DEFAULT && size == 0) if (!avi->dv_demux &&
/* || (st->discard >= AVDISCARD_NONKEY && !(pkt->flags & AV_PKT_FLAG_KEY)) */ // FIXME: needs a little reordering ((st->discard >= AVDISCARD_DEFAULT && size == 0) /* ||
|| st->discard >= AVDISCARD_ALL) { // FIXME: needs a little reordering
(st->discard >= AVDISCARD_NONKEY &&
!(pkt->flags & AV_PKT_FLAG_KEY)) */
|| st->discard >= AVDISCARD_ALL)) {
if (!exit_early) { if (!exit_early) {
ast->frame_offset += get_duration(ast, size); ast->frame_offset += get_duration(ast, 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