mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
mpegaudiodec: Do not discard mp_decode_frame() return value.
This fixes the warning: libavcodec/mpegaudiodec.c:1704:14: warning: variable ‘out_size’ set but not used
This commit is contained in:
parent
3c58300269
commit
aa3f2cb584
@ -1733,6 +1733,10 @@ static int decode_frame_adu(AVCodecContext *avctx, void *data,
|
|||||||
s->frame_size = len;
|
s->frame_size = len;
|
||||||
|
|
||||||
out_size = mp_decode_frame(s, NULL, buf, buf_size);
|
out_size = mp_decode_frame(s, NULL, buf, buf_size);
|
||||||
|
if (out_size < 0) {
|
||||||
|
av_log(avctx, AV_LOG_ERROR, "Error while decoding MPEG audio frame.\n");
|
||||||
|
return AVERROR_INVALIDDATA;
|
||||||
|
}
|
||||||
|
|
||||||
*got_frame_ptr = 1;
|
*got_frame_ptr = 1;
|
||||||
*(AVFrame *)data = s->frame;
|
*(AVFrame *)data = s->frame;
|
||||||
|
Loading…
Reference in New Issue
Block a user