[FFmpeg-cvslog] Perform inter-channel decorr. only if both channels are coded

Mashiat Sarker Shakkhar git at videolan.org
Sun Feb 19 19:41:45 CET 2012


ffmpeg | branch: master | Mashiat Sarker Shakkhar <shahriman_ams at yahoo.com> | Sat Feb 18 21:00:03 2012 +0600| [a520a9946f25fe36000558cf8bb512109ea40353] | committer: Mashiat Sarker Shakkhar

Perform inter-channel decorr. only if both channels are coded

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a520a9946f25fe36000558cf8bb512109ea40353
---

 libavcodec/wmalosslessdec.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavcodec/wmalosslessdec.c b/libavcodec/wmalosslessdec.c
index 30c055b..899645a 100644
--- a/libavcodec/wmalosslessdec.c
+++ b/libavcodec/wmalosslessdec.c
@@ -1025,7 +1025,7 @@ static void revert_inter_ch_decorr(WmallDecodeCtx *s, int tile_size)
     int icoef;
     if (s->num_channels != 2)
         return;
-    else {
+    else if (s->is_channel_coded[0] && s->is_channel_coded[1]) {
         for (icoef = 0; icoef < tile_size; icoef++) {
             s->channel_residues[0][icoef] -= s->channel_residues[1][icoef] >> 1;
             s->channel_residues[1][icoef] += s->channel_residues[0][icoef];



More information about the ffmpeg-cvslog mailing list