summaryrefslogtreecommitdiffstats
path: root/libavcodec/cook.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2008-03-04 21:58:34 +0000
committerMichael Niedermayer <michaelni@gmx.at>2008-03-04 21:58:34 +0000
commit6a287b739f3a8660d5e4405be1302da8b3e51e88 (patch)
treebe5bcaf686032d5f236d414fd29c8b5fe5066530 /libavcodec/cook.c
parent1a2a1d90775b5be03254d123e4b617145a269572 (diff)
downloadffmpeg-streaming-6a287b739f3a8660d5e4405be1302da8b3e51e88.zip
ffmpeg-streaming-6a287b739f3a8660d5e4405be1302da8b3e51e88.tar.gz
Detect and prevent reading over the end of counts_*. We pass the error
through a context variable as this is simpler and i think also faster, but the return value of functions could be used instead of course. The code also ensures as a side effect that the AC decoder state does not become invalid. This fixes all known crashes. And outputs nothing in case of an error instead of random noise. Originally committed as revision 12316 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/cook.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud