On Tue, 24 Jun 2014 16:26:43 +0200, Luca Barbato <lu_z...@gentoo.org> wrote:
> From: Mickaƫl Raulet <mrau...@insa-rennes.fr>
> 
> Before it was incorrectly set always to 1.

was it?
> ---
>  libavcodec/hevc.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/libavcodec/hevc.c b/libavcodec/hevc.c
> index 002d9f4..fffca33 100644
> --- a/libavcodec/hevc.c
> +++ b/libavcodec/hevc.c
> @@ -3122,6 +3122,7 @@ static int hevc_decode_frame(AVCodecContext *avctx, 
> void *data, int *got_output,
>  
>      if (s->is_decoded) {
>          av_log(avctx, AV_LOG_DEBUG, "Decoded frame with POC %d.\n", s->poc);
> +        s->ref->frame->key_frame = IS_IRAP(s);

This looks like the wrong place for this, since the last decoded NALU is not
necessarily a slice, it could be SEI. The right place would be
hevc_frame_start()

-- 
Anton Khirnov
_______________________________________________
libav-devel mailing list
libav-devel@libav.org
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to