[FFmpeg-devel] [PATCH] vp9: ignore frame_context_index field in key-/intraonly-frames.

Michael Niedermayer michael at niedermayer.cc
Sat Apr 16 22:09:46 CEST 2016


On Sat, Apr 16, 2016 at 01:56:18PM -0400, Ronald S. Bultje wrote:
> Reproduces a bug to remain consistent with libvpx' behaviour.
> ---
>  libavcodec/vp9.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/libavcodec/vp9.c b/libavcodec/vp9.c
> index 5c6f176..70d9c4b 100644
> --- a/libavcodec/vp9.c
> +++ b/libavcodec/vp9.c
> @@ -642,6 +642,8 @@ static int decode_frame_header(AVCodecContext *ctx,
>      s->s.h.refreshctx   = s->s.h.errorres ? 0 : get_bits1(&s->gb);
>      s->s.h.parallelmode = s->s.h.errorres ? 1 : get_bits1(&s->gb);
>      s->s.h.framectxid   = c = get_bits(&s->gb, 2);
> +    if (s->s.h.keyframe || s->s.h.intraonly)
> +        s->s.h.framectxid = 0; // BUG: ignore field in keyframes

should be ok

[...]

thx

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

No snowflake in an avalanche ever feels responsible. -- Voltaire
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20160416/6523f20a/attachment.sig>


More information about the ffmpeg-devel mailing list