mirror of https://git.ffmpeg.org/ffmpeg.git
Do not drop packets with no valid ->pos set as e.g. DV-in-AVI produces.
Fixes ticket #140.
This commit is contained in:
parent
fa1195227f
commit
1a9f9f81b1
|
@ -1016,7 +1016,7 @@ resync:
|
||||||
ast->packet_size= 0;
|
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);
|
av_free_packet(pkt);
|
||||||
goto resync;
|
goto resync;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue