diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2011-04-30 11:49:49 +0200 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2011-04-30 23:06:04 +0200 |
commit | 1a9f9f81b1244b952126bb65bc741b04d3534f81 (patch) | |
tree | f30f6aa4bacbbf6616c1e225d883e426caefbb4c /libavformat | |
parent | fa1195227ff010bc22472688587fdcfa620f69de (diff) | |
download | ffmpeg-1a9f9f81b1244b952126bb65bc741b04d3534f81.tar.gz |
Do not drop packets with no valid ->pos set as e.g. DV-in-AVI produces.
Fixes ticket #140.
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/avidec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/avidec.c b/libavformat/avidec.c index 6a5d1e7a45..c497b9a38e 100644 --- a/libavformat/avidec.c +++ b/libavformat/avidec.c @@ -1016,7 +1016,7 @@ resync: ast->packet_size= 0; } - if(!avi->non_interleaved && ast->seek_pos > pkt->pos){ + if(!avi->non_interleaved && pkt->pos >= 0 && ast->seek_pos > pkt->pos){ av_free_packet(pkt); goto resync; } |