Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier CrĂȘte <olivier.crete@collabora.com>2021-08-24 16:43:42 +0300
committerPaul B Mahol <onemda@gmail.com>2021-08-26 10:20:56 +0300
commit521388edb7d3c176b444bbc3a42723cbafab2d55 (patch)
tree98e1fdb1991b3cd816f83228b510a8c402d73681 /libavcodec/wma.c
parentc1c7f2b61f30a2a7c3a3a9bfa892dfc3b2bda21c (diff)
avcodec/wma: Return specific error code
This way, the calling function can just forward it instead of making it up. Signed-off-by: Olivier CrĂȘte <olivier.crete@collabora.com>
Diffstat (limited to 'libavcodec/wma.c')
-rw-r--r--libavcodec/wma.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/wma.c b/libavcodec/wma.c
index 004ffb5515..d9fda2dbfa 100644
--- a/libavcodec/wma.c
+++ b/libavcodec/wma.c
@@ -459,7 +459,7 @@ int ff_wma_run_level_decode(AVCodecContext *avctx, GetBitContext *gb,
if (get_bits1(gb)) {
av_log(avctx, AV_LOG_ERROR,
"broken escape sequence\n");
- return -1;
+ return AVERROR_INVALIDDATA;
} else
offset += get_bits(gb, frame_len_bits) + 4;
} else
@@ -477,7 +477,7 @@ int ff_wma_run_level_decode(AVCodecContext *avctx, GetBitContext *gb,
offset,
num_coefs
);
- return -1;
+ return AVERROR_INVALIDDATA;
}
return 0;