summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2021-09-16 16:34:03 -0300
committerJames Almer <jamrial@gmail.com>2021-09-16 19:44:32 -0300
commit229e949c8e62b01a6c2e0a5fa5444fbd05ab22ef (patch)
treea62bd37e20b83b4e007360c5c2739d622b90c835 /libavformat
parent90da43557f7257d72e95504f63ae6504406d6eab (diff)
avformat/mvdec: Don't signal success on parse_audio_var() error
Propagate the error it returned instead. Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/mvdec.c2
1 files changed, 1 insertions, 1 deletions
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 &&