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

Fixes ticket #140.
oldabi
Reimar Döffinger 14 years ago
parent fa1195227f
commit 1a9f9f81b1
  1. 2
      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;
}

Loading…
Cancel
Save