diff options
author | Alex Converse <alex.converse@gmail.com> | 2010-06-20 19:38:08 +0000 |
---|---|---|
committer | Alex Converse <alex.converse@gmail.com> | 2010-06-20 19:38:08 +0000 |
commit | d23077af564604ee376f4c88cadb8149c2954d6f (patch) | |
tree | 94b5c3b0bae146c946de176afebb84a8aedd482f /libavcodec/ps.c | |
parent | bd9e0e29055f611a34b1af9a4f5cea5e68c18ceb (diff) | |
download | ffmpeg-d23077af564604ee376f4c88cadb8149c2954d6f.tar.gz |
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.
Originally committed as revision 23661 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/ps.c')
-rw-r--r-- | libavcodec/ps.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/ps.c b/libavcodec/ps.c index 7659c1d3c2..acf8c7dea0 100644 --- a/libavcodec/ps.c +++ b/libavcodec/ps.c @@ -235,13 +235,13 @@ int ff_ps_read_data(AVCodecContext *avctx, GetBitContext *gb_host, PSContext *ps //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])); } |