Mercurial > libavcodec.hg
changeset 11890:747ea58d1ac6 libavcodec
Remove iid_mode from the PS context.
author | alexc |
---|---|
date | Sun, 20 Jun 2010 17:15:28 +0000 |
parents | b9f69606a094 |
children | 72441b6700d4 |
files | ps.c ps.h |
diffstat | 2 files changed, 6 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/ps.c Sun Jun 20 13:00:24 2010 +0000 +++ b/ps.c Sun Jun 20 17:15:28 2010 +0000 @@ -156,15 +156,15 @@ if (header) { //enable_ps_header ps->enable_iid = get_bits1(gb); if (ps->enable_iid) { - ps->iid_mode = get_bits(gb, 3); - if (ps->iid_mode > 5) { + int iid_mode = get_bits(gb, 3); + if (iid_mode > 5) { av_log(avctx, AV_LOG_ERROR, "iid_mode %d is reserved.\n", - ps->iid_mode); + iid_mode); goto err; } - ps->nr_iid_par = nr_iidicc_par_tab[ps->iid_mode]; - ps->iid_quant = ps->iid_mode > 2; - ps->nr_ipdopd_par = nr_iidopd_par_tab[ps->iid_mode]; + ps->nr_iid_par = nr_iidicc_par_tab[iid_mode]; + ps->iid_quant = iid_mode > 2; + ps->nr_ipdopd_par = nr_iidopd_par_tab[iid_mode]; } ps->enable_icc = get_bits1(gb); if (ps->enable_icc) {