Merge commit 'f43789b76e661acd93c21664678f140e53cfa1fa'

* commit 'f43789b76e661acd93c21664678f140e53cfa1fa':
  hevc: set the keyframe flag on output frames

See: e2760de605
Merged-by: Michael Niedermayer <michaelni@gmx.at>
pull/77/head
Michael Niedermayer 11 years ago
commit aa56c37c8a
  1. 3
      libavcodec/hevc.c

@ -2388,6 +2388,8 @@ static int hevc_frame_start(HEVCContext *s)
goto fail; goto fail;
} }
s->ref->frame->key_frame = IS_IRAP(s);
ret = set_side_data(s); ret = set_side_data(s);
if (ret < 0) if (ret < 0)
goto fail; goto fail;
@ -2879,7 +2881,6 @@ static int hevc_decode_frame(AVCodecContext *avctx, void *data, int *got_output,
s->is_md5 = 0; s->is_md5 = 0;
if (s->is_decoded) { if (s->is_decoded) {
s->ref->frame->key_frame = IS_IRAP(s);
av_log(avctx, AV_LOG_DEBUG, "Decoded frame with POC %d.\n", s->poc); av_log(avctx, AV_LOG_DEBUG, "Decoded frame with POC %d.\n", s->poc);
s->is_decoded = 0; s->is_decoded = 0;
} }

Loading…
Cancel
Save