History

vp9: ignore frame_context_index field in key-/intraonly-frames.

Reproduces a bug to remain consistent with libvpx' behaviour.

Ronald S. Bultje committed 10 years ago

Commit ee729cc1 parent 6135aed1 file · +2 −0Browse files

Unified · Split

libavcodec/vp9.c+2−0
@@ -642,6 +642,8 @@ static int decode_frame_header(AVCodecContext *ctx, · 641 unmodified lines
642642 s->s.h.refreshctx = s->s.h.errorres ? 0 : get_bits1(&s->gb);
643643 s->s.h.parallelmode = s->s.h.errorres ? 1 : get_bits1(&s->gb);
644644 s->s.h.framectxid = c = get_bits(&s->gb, 2);
645+ if (s->s.h.keyframe || s->s.h.intraonly)
646+ s->s.h.framectxid = 0; // BUG: libvpx ignores this field in keyframes
645647
646648 /* loopfilter header data */
647649 if (s->s.h.keyframe || s->s.h.errorres || s->s.h.intraonly) {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t