Mercurial > libavcodec.hg
changeset 11893:5ee87f2c9bc8 libavcodec
Allow PS envelope fixup when ps->num_env_old <= 1.
It is already rejected by the "source >= 0 && source != ps->num_env" 0 envelope
case and is perfectly legally for the suppressed final envelope case.
author | alexc |
---|---|
date | Sun, 20 Jun 2010 19:38:08 +0000 |
parents | a0c269879276 |
children | 335524dba347 |
files | ps.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/ps.c Sun Jun 20 19:24:18 2010 +0000 +++ b/ps.c Sun Jun 20 19:38:08 2010 +0000 @@ -235,13 +235,13 @@ //Create a fake envelope int source = ps->num_env ? ps->num_env - 1 : ps->num_env_old - 1; if (source >= 0 && source != ps->num_env) { - if (ps->enable_iid && ps->num_env_old > 1) { + if (ps->enable_iid) { memcpy(ps->iid_par+ps->num_env, ps->iid_par+source, sizeof(ps->iid_par[0])); } - if (ps->enable_icc && ps->num_env_old > 1) { + if (ps->enable_icc) { memcpy(ps->icc_par+ps->num_env, ps->icc_par+source, sizeof(ps->icc_par[0])); } - if (ps->enable_ipdopd && ps->num_env_old > 1) { + if (ps->enable_ipdopd) { memcpy(ps->ipd_par+ps->num_env, ps->ipd_par+source, sizeof(ps->ipd_par[0])); memcpy(ps->opd_par+ps->num_env, ps->opd_par+source, sizeof(ps->opd_par[0])); }