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:
authorAnton Khirnov <anton@khirnov.net>2015-07-13 08:49:03 +0300
committerAnton Khirnov <anton@khirnov.net>2015-07-13 08:49:03 +0300
commitb9f76d19d81fbc7f088536f966c2d3dc23c34ddc (patch)
tree016df4cacaa6b8802cd269a7b495860a228c3503 /libavcodec/hevc_ps.c
parent077b55943330150db0eafd36bbee614697cabd98 (diff)
hevc_ps: make sure failing to decode an SPS always returns an error
Some of the goto err clauses do not set the error code. It seems better to fall back on INVALIDDATA instead of adding it everywhere explicitly.
Diffstat (limited to 'libavcodec/hevc_ps.c')
-rw-r--r--libavcodec/hevc_ps.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/hevc_ps.c b/libavcodec/hevc_ps.c
index 6102905709..a1eaf6ea11 100644
--- a/libavcodec/hevc_ps.c
+++ b/libavcodec/hevc_ps.c
@@ -965,7 +965,7 @@ int ff_hevc_parse_sps(HEVCSPS *sps, GetBitContext *gb, unsigned int *sps_id,
return 0;
err:
- return ret;
+ return ret < 0 ? ret : AVERROR_INVALIDDATA;
}
int ff_hevc_decode_nal_sps(GetBitContext *gb, AVCodecContext *avctx,