Browse Source

avcodec/hevc: fix outputted AVFrame.key_frame

previously it was always 1

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.3
Peter Kovář Michael Niedermayer 11 years ago
parent
commit
973de9ebf8
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      libavcodec/hevc_refs.c

+ 3
- 0
libavcodec/hevc_refs.c View File

@@ -207,6 +207,9 @@ int ff_hevc_output_frame(HEVCContext *s, AVFrame *out, int flush)
(frame->window.top_offset >> vshift) * dst->linesize[i];
dst->data[i] += off;
}

out->key_frame = out->pict_type == AV_PICTURE_TYPE_I;

av_log(s->avctx, AV_LOG_DEBUG,
"Output frame with POC %d.\n", frame->poc);
return 1;


Loading…
Cancel
Save