diff --git a/README.md b/README.md index 2487129..4018fe9 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,7 @@ The Makefile expects the CUDA SDK in /usr/local/cuda. Currently it is tested wit Unfortunatly FFMEG has a bug with deinterlacing cuda frames. So you have to patch the file in libavcodec/cuviddec.c -Somewhere near line 860 depending on your release: +Somewhere near line 860 and 1066 depending on your release: old: ctx->frame_queue = av_fifo_alloc(ctx->nb_surfaces * sizeof(CuvidParsedFrame)); diff --git a/README.txt b/README.txt index e29719b..3d476ab 100644 --- a/README.txt +++ b/README.txt @@ -53,7 +53,7 @@ The Makefile expects the CUDA SDK in /usr/local/cuda. Currently it is tested wit Unfortunatly FFMEG has a bug with deinterlacing cuda frames. So you have to patch the file in libavcodec/cuviddec.c -Somewhere near line 860 depending on your release: +Somewhere near line 860 and 1066 depending on your release: old: ctx->frame_queue = av_fifo_alloc(ctx->nb_surfaces * sizeof(CuvidParsedFrame)); diff --git a/codec.c b/codec.c index 01d5af3..38fdb01 100644 --- a/codec.c +++ b/codec.c @@ -541,10 +541,7 @@ void CodecVideoFlushBuffers(VideoDecoder * decoder) frame = decoder->Frame; if (decoder->VideoCtx) { - while (avcodec_receive_frame(decoder->VideoCtx,frame) >= 0) { - usleep(1); - } -// avcodec_flush_buffers(decoder->VideoCtx); + avcodec_flush_buffers(decoder->VideoCtx); } }