diff options
author | Aurelien Jacobs <aurel@gnuage.org> | 2007-02-25 15:33:38 +0000 |
---|---|---|
committer | Aurelien Jacobs <aurel@gnuage.org> | 2007-02-25 15:33:38 +0000 |
commit | 704a2881bc7787592889a5c3d48ef4ce8398214d (patch) | |
tree | 6ca547f61957190d13f5ecfc2b5fec0e404afd7c /libavcodec/vp6.c | |
parent | 950d94ad3b232d6e4ee1ad1a1f60364f8e0dfbda (diff) | |
download | ffmpeg-704a2881bc7787592889a5c3d48ef4ce8398214d.tar.gz |
Use pointers to avoid copying AVFrame.
This ensure get_buffer() won't be confused with an AVFrame pointer
which looks like it wasn't released.
Originally committed as revision 8124 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/vp6.c')
-rw-r--r-- | libavcodec/vp6.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/vp6.c b/libavcodec/vp6.c index 9a2afd8fa0..2e904b7e0a 100644 --- a/libavcodec/vp6.c +++ b/libavcodec/vp6.c @@ -50,10 +50,10 @@ static int vp6_parse_header(vp56_context_t *s, uint8_t *buf, int buf_size, int res = 1; int separated_coeff = buf[0] & 1; - s->frames[VP56_FRAME_CURRENT].key_frame = !(buf[0] & 0x80); + s->framep[VP56_FRAME_CURRENT]->key_frame = !(buf[0] & 0x80); vp56_init_dequant(s, (buf[0] >> 1) & 0x3F); - if (s->frames[VP56_FRAME_CURRENT].key_frame) { + if (s->framep[VP56_FRAME_CURRENT]->key_frame) { sub_version = buf[1] >> 3; if (sub_version > 8) return 0; @@ -205,7 +205,7 @@ static void vp6_parse_coeff_models(vp56_context_t *s) if (vp56_rac_get_prob(c, vp6_dccv_pct[pt][node])) { def_prob[node] = vp56_rac_gets_nn(c, 7); s->coeff_model_dccv[pt][node] = def_prob[node]; - } else if (s->frames[VP56_FRAME_CURRENT].key_frame) { + } else if (s->framep[VP56_FRAME_CURRENT]->key_frame) { s->coeff_model_dccv[pt][node] = def_prob[node]; } @@ -228,7 +228,7 @@ static void vp6_parse_coeff_models(vp56_context_t *s) if (vp56_rac_get_prob(c, vp6_ract_pct[ct][pt][cg][node])) { def_prob[node] = vp56_rac_gets_nn(c, 7); s->coeff_model_ract[pt][ct][cg][node] = def_prob[node]; - } else if (s->frames[VP56_FRAME_CURRENT].key_frame) { + } else if (s->framep[VP56_FRAME_CURRENT]->key_frame) { s->coeff_model_ract[pt][ct][cg][node] = def_prob[node]; } |