Do not drop packets with no valid ->pos set as e.g. DV-in-AVI produces.

Fixes ticket #140.
This commit is contained in:
Reimar Döffinger 2011-04-30 11:49:49 +02:00
parent fa1195227f
commit 1a9f9f81b1

View File

@ -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;
}