mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-23 11:19:55 +00:00
vp9: ignore frame_context_index field in key-/intraonly-frames.
Reproduces a bug to remain consistent with libvpx' behaviour.
This commit is contained in:
parent
6135aed0d2
commit
ee729cc0ed
@ -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: libvpx ignores this field in keyframes
|
||||
|
||||
/* loopfilter header data */
|
||||
if (s->s.h.keyframe || s->s.h.errorres || s->s.h.intraonly) {
|
||||
|
Loading…
Reference in New Issue
Block a user