Browse Source

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

Fixes ticket #140.
tags/n0.8
Reimar Döffinger 14 years ago
parent
commit
1a9f9f81b1
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/avidec.c

+ 1
- 1
libavformat/avidec.c 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;
}


Loading…
Cancel
Save