[FFmpeg-cvslog] Do not drop packets with no valid ->pos set as e.g. DV-in-AVI produces.
Reimar Döffinger
git at videolan.org
Sat Apr 30 23:08:21 CEST 2011
ffmpeg | branch: master | Reimar Döffinger <Reimar.Doeffinger at gmx.de> | Sat Apr 30 11:49:49 2011 +0200| [1a9f9f81b1244b952126bb65bc741b04d3534f81] | committer: Reimar Döffinger
Do not drop packets with no valid ->pos set as e.g. DV-in-AVI produces.
Fixes ticket #140.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1a9f9f81b1244b952126bb65bc741b04d3534f81
---
libavformat/avidec.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavformat/avidec.c b/libavformat/avidec.c
index 6a5d1e7..c497b9a 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;
}
More information about the ffmpeg-cvslog
mailing list