Commit 1a9f9f81 authored by Reimar Döffinger's avatar Reimar Döffinger

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

Fixes ticket #140.
parent fa119522
...@@ -1016,7 +1016,7 @@ resync: ...@@ -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;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment