diff options
author | Vittorio Giovara <vittorio.giovara@gmail.com> | 2016-02-19 17:37:11 -0500 |
---|---|---|
committer | Vittorio Giovara <vittorio.giovara@gmail.com> | 2016-03-22 17:33:32 -0400 |
commit | 0372e73f917e72c40b09270f771046fc142be4a7 (patch) | |
tree | fafcd038806affd5e41e535a74d380df8e3d5da3 /libavcodec/intrax8.h | |
parent | ad8aa8e6c648b61f01b9f106f27b9d4f3d094345 (diff) | |
download | ffmpeg-0372e73f917e72c40b09270f771046fc142be4a7.tar.gz |
intrax8: Check and propagate errors from ff_intrax8_common_init
This allows dropping an afterwards redundant assert.
Diffstat (limited to 'libavcodec/intrax8.h')
-rw-r--r-- | libavcodec/intrax8.h | 3 |
1 files changed, 2 insertions, 1 deletions
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. |