1
0
mirror of https://github.com/jojo61/vdr-plugin-softhdcuvid.git synced 2023-10-10 13:37:41 +02:00

reversed fix for interlaced playback

This commit is contained in:
jojo61 2018-10-13 15:45:01 +02:00
parent 5f748c6275
commit a32b42c68d
3 changed files with 3 additions and 6 deletions

View File

@ -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));

View File

@ -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));

View File

@ -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);
}
}