aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/ac3dec.c
diff options
context:
space:
mode:
authorRay Simard <rhs.ffmpeg@sylvan-glade.com>2012-01-20 18:19:46 -0800
committerMichael Niedermayer <michaelni@gmx.at>2012-01-21 05:22:49 +0100
commit9ec39937f9c7f28a2279a19f71f290d8161eb52f (patch)
treea86e50ea151af2e2884057edc1f258330720fce8 /libavcodec/ac3dec.c
parentbdd739e91cf30a016cba1461170a01b231e54785 (diff)
downloadffmpeg-9ec39937f9c7f28a2279a19f71f290d8161eb52f.tar.gz
deshake: variable used uninitialized
Sometimes the scan finds nothing that qualifies for addition to the array and pos is zero after the loops. The code forces pos to 1 and the array is then processed as if it had one valid element in it, producing some amusing but not very useful results. I don't see the rationale for this. If pos is zero coming out of the loops, the only appropriate thing to do is set t->angle to zero. The attached patch does that. It's worked properly in several tests so far. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/ac3dec.c')
0 files changed, 0 insertions, 0 deletions