From 0372e73f917e72c40b09270f771046fc142be4a7 Mon Sep 17 00:00:00 2001 From: Vittorio Giovara Date: Fri, 19 Feb 2016 17:37:11 -0500 Subject: intrax8: Check and propagate errors from ff_intrax8_common_init This allows dropping an afterwards redundant assert. --- libavcodec/intrax8.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libavcodec/intrax8.h') diff --git a/libavcodec/intrax8.h b/libavcodec/intrax8.h index 3339bc6cfd..f69f03e6ee 100644 --- a/libavcodec/intrax8.h +++ b/libavcodec/intrax8.h @@ -61,8 +61,9 @@ typedef struct IntraX8Context { * Requires valid MpegEncContext with valid s->mb_width before calling. * @param w pointer to IntraX8Context * @param s pointer to MpegEncContext of the parent codec + * @return 0 on success, a negative AVERROR value on error */ -void ff_intrax8_common_init(IntraX8Context *w, MpegEncContext *const s); +int ff_intrax8_common_init(IntraX8Context *w, MpegEncContext *const s); /** * Destroy IntraX8 frame structure. -- cgit v1.2.3