Merge commit '54e03863691dcae73260f70108b3731b70773e7c' into release/0.10
[ffmpeg.git] / libavcodec / ac3dec.c
index 9384dc7..c11df7f 100644 (file)
@@ -1345,7 +1345,7 @@ static int ac3_decode_frame(AVCodecContext * avctx, void *data,
                 av_log(avctx, AV_LOG_ERROR, "unsupported frame type : "
                        "skipping frame\n");
                 *got_frame_ptr = 0;
-                return s->frame_size;
+                return buf_size;
             } else {
                 av_log(avctx, AV_LOG_ERROR, "invalid frame type\n");
             }