Fix #29671: Issues with .mts video files

Video frame decoding used to leave packet reading cycle before frame
is fully decoded in cases frame is encoded by several packets.
This commit is contained in:
Sergey Sharybin
2012-01-04 09:27:34 +00:00
parent 388da558ed
commit 4ec69b1071

View File

@@ -768,8 +768,8 @@ static int ffmpeg_decode_video_frame(struct anim * anim)
== AV_NOPTS_VALUE) ?
-1 : (long long int)anim->pFrame->pkt_pts,
(long long int)anim->next_pts);
break;
}
break;
}
av_free_packet(&anim->next_packet);
anim->next_packet.stream_index = -1;