Skip to content
Permalink
Browse files

cuvid: Fix flushing with new API/deinterlacing

Extra fields to reset.
  • Loading branch information
philipl committed Sep 18, 2016
1 parent bd622cc commit 3473fbe5e4c8da17e619115e5b1e966b61e44370
Showing with 4 additions and 0 deletions.
  1. +4 −0 libavcodec/cuvid.c
@@ -886,6 +886,10 @@ static void cuvid_flush(AVCodecContext *avctx)
if (ret < 0)
goto error;

ctx->prev_pts = INT64_MIN;
ctx->decoder_flushing = 0;
ctx->waiting_frames = 0;

return;
error:
av_log(avctx, AV_LOG_ERROR, "CUDA reinit on flush failed\n");

0 comments on commit 3473fbe

Please sign in to comment.