avcodec/opusdec: Fix delayed sample value
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 7 Mar 2015 14:34:19 +0000 (15:34 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 21 Mar 2015 00:52:52 +0000 (01:52 +0100)
commit90fa2460c0728a0bc08dc5165476b6691c057a7b
tree38df41db0f27b6387ccbe6b3d9b7e62322b21930
parent50f50379479384a7e972e235a1b7031eebb52f8a
avcodec/opusdec: Fix delayed sample value

Fixes out of array access
Fixes: ffmpeg_opus_crash1.ogg

This solution is likely not optimal in terms of error concealment but
its simple and fixes the out of array access.

Found-by: Thomas Lindroth <thomas.lindroth@gmail.com>
Tested-by: Thomas Lindroth <thomas.lindroth@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 6c583e9048fe9db2ed4d7bbc75f4f1d76e82761a)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/opusdec.c