fixed interlaced playback

This commit is contained in:
jojo61
2018-10-13 14:40:47 +02:00
parent a01539cf8f
commit 38307c868f
2 changed files with 11 additions and 5 deletions

View File

@@ -537,8 +537,14 @@ next_part:
*/
void CodecVideoFlushBuffers(VideoDecoder * decoder)
{
AVFrame *frame;
frame = decoder->Frame;
if (decoder->VideoCtx) {
avcodec_flush_buffers(decoder->VideoCtx);
while (avcodec_receive_frame(decoder->VideoCtx,frame) >= 0) {
usleep(1);
}
// avcodec_flush_buffers(decoder->VideoCtx);
}
}