ffmpeg | branch: master | James Almer <jamr...@gmail.com> | Thu Sep 16 16:34:03 
2021 -0300| [229e949c8e62b01a6c2e0a5fa5444fbd05ab22ef] | committer: James Almer

avformat/mvdec: Don't signal success on parse_audio_var() error

Propagate the error it returned instead.

Signed-off-by: James Almer <jamr...@gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=229e949c8e62b01a6c2e0a5fa5444fbd05ab22ef
---

 libavformat/mvdec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/mvdec.c b/libavformat/mvdec.c
index 7573087c7c..0b4aa1f18f 100644
--- a/libavformat/mvdec.c
+++ b/libavformat/mvdec.c
@@ -387,7 +387,7 @@ static int mv_read_header(AVFormatContext *avctx)
             if (!ast)
                 return AVERROR(ENOMEM);
             ast->codecpar->codec_type = AVMEDIA_TYPE_AUDIO;
-            if ((read_table(avctx, ast, parse_audio_var)) < 0)
+            if ((ret = read_table(avctx, ast, parse_audio_var)) < 0)
                 return ret;
             if (mv->acompression == 100 &&
                 mv->aformat == AUDIO_FORMAT_SIGNED &&

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to