Skip to content
Snippets Groups Projects
Commit 973de9eb authored by Peter Kovář's avatar Peter Kovář Committed by Michael Niedermayer
Browse files

avcodec/hevc: fix outputted AVFrame.key_frame


previously it was always 1

Signed-off-by: default avatarMichael Niedermayer <michaelni@gmx.at>
parent 434ba17b
No related branches found
No related tags found
No related merge requests found
...@@ -207,6 +207,9 @@ int ff_hevc_output_frame(HEVCContext *s, AVFrame *out, int flush) ...@@ -207,6 +207,9 @@ int ff_hevc_output_frame(HEVCContext *s, AVFrame *out, int flush)
(frame->window.top_offset >> vshift) * dst->linesize[i]; (frame->window.top_offset >> vshift) * dst->linesize[i];
dst->data[i] += off; dst->data[i] += off;
} }
out->key_frame = out->pict_type == AV_PICTURE_TYPE_I;
av_log(s->avctx, AV_LOG_DEBUG, av_log(s->avctx, AV_LOG_DEBUG,
"Output frame with POC %d.\n", frame->poc); "Output frame with POC %d.\n", frame->poc);
return 1; return 1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment