Commit b9f76d19 authored by Anton Khirnov's avatar Anton Khirnov

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.
parent 077b5594
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment