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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user