1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-28 20:53:54 +02:00

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.
This commit is contained in:
Anton Khirnov 2015-07-13 07:49:03 +02:00
parent 077b559433
commit b9f76d19d8

View File

@ -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,