aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2011-04-30 11:49:49 +0200
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2011-04-30 23:06:04 +0200
commit1a9f9f81b1244b952126bb65bc741b04d3534f81 (patch)
treef30f6aa4bacbbf6616c1e225d883e426caefbb4c /libavformat
parentfa1195227ff010bc22472688587fdcfa620f69de (diff)
downloadffmpeg-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.c2
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;
}