Merge commit 'f43789b76e661acd93c21664678f140e53cfa1fa'
* commit 'f43789b76e661acd93c21664678f140e53cfa1fa': hevc: set the keyframe flag on output frames See: e2760de60514b949c0a5584d797d933f711f5b14 Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
aa56c37c8a
@ -2388,6 +2388,8 @@ static int hevc_frame_start(HEVCContext *s)
|
||||
goto fail;
|
||||
}
|
||||
|
||||
s->ref->frame->key_frame = IS_IRAP(s);
|
||||
|
||||
ret = set_side_data(s);
|
||||
if (ret < 0)
|
||||
goto fail;
|
||||
@ -2879,7 +2881,6 @@ static int hevc_decode_frame(AVCodecContext *avctx, void *data, int *got_output,
|
||||
s->is_md5 = 0;
|
||||
|
||||
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);
|
||||
s->is_decoded = 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user