aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/atrac3plusdec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-01-09 20:56:49 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-01-09 20:58:03 +0100
commit268d93172460f116d239c2cf815d7b2f495efb2d (patch)
tree6648863bf756cd7820d36f61d03d24d7bf7f64af /libavcodec/atrac3plusdec.c
parent92b2404571bcdd294d6ef0e614eee55432e959a7 (diff)
parente6f0bb65270be51ea43345a28f8e4b1a728f7d0e (diff)
downloadffmpeg-268d93172460f116d239c2cf815d7b2f495efb2d.tar.gz
Merge remote-tracking branch 'qatar/master'
* qatar/master: ATRAC3+ decoder Conflicts: Changelog configure libavcodec/atrac3plus.c libavcodec/atrac3plus.h libavcodec/atrac3plus_data.h libavcodec/atrac3plusdec.c libavcodec/atrac3plusdsp.c libavcodec/version.h See: 2e1fb96af36348479e14aa85f445915ea09e70fa Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/atrac3plusdec.c')
-rw-r--r--libavcodec/atrac3plusdec.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavcodec/atrac3plusdec.c b/libavcodec/atrac3plusdec.c
index 51d7072374..545dbecc5d 100644
--- a/libavcodec/atrac3plusdec.c
+++ b/libavcodec/atrac3plusdec.c
@@ -135,6 +135,11 @@ static av_cold int atrac3p_decode_init(AVCodecContext *avctx)
ATRAC3PContext *ctx = avctx->priv_data;
int i, ch, ret;
+ if (!avctx->block_align) {
+ av_log(avctx, AV_LOG_ERROR, "block_align is not set\n");
+ return AVERROR(EINVAL);
+ }
+
ff_atrac3p_init_vlcs();
avpriv_float_dsp_init(&ctx->fdsp, avctx->flags & CODEC_FLAG_BITEXACT);