diff options
author | Hendrik Leppkes <h.leppkes@gmail.com> | 2016-11-18 10:46:02 +0100 |
---|---|---|
committer | Hendrik Leppkes <h.leppkes@gmail.com> | 2016-11-18 10:46:02 +0100 |
commit | 7e9474ca47fd4d267bdafcc8162fded67f6410e5 (patch) | |
tree | 3d9ff5dff4634e797274ba831ae1b81ce9bf1f50 /libavcodec/libopenh264enc.c | |
parent | 0bd76401d1666bf8f0a67946d761ed9ba4751e49 (diff) | |
parent | 2d097c16b833c532ac974a7f1fd05c0a1f3b7675 (diff) | |
download | ffmpeg-streaming-7e9474ca47fd4d267bdafcc8162fded67f6410e5.zip ffmpeg-streaming-7e9474ca47fd4d267bdafcc8162fded67f6410e5.tar.gz |
Merge commit '2d097c16b833c532ac974a7f1fd05c0a1f3b7675'
* commit '2d097c16b833c532ac974a7f1fd05c0a1f3b7675':
libopenh264enc: Return a more sensible error code in some init failure paths
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
Diffstat (limited to 'libavcodec/libopenh264enc.c')
-rw-r--r-- | libavcodec/libopenh264enc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/libopenh264enc.c b/libavcodec/libopenh264enc.c index 14afe90..91f26d0 100644 --- a/libavcodec/libopenh264enc.c +++ b/libavcodec/libopenh264enc.c @@ -167,6 +167,7 @@ FF_ENABLE_DEPRECATION_WARNINGS av_log(avctx, AV_LOG_ERROR, "Invalid combination -slices %d and -max_nal_size %d.\n", avctx->slices, s->max_nal_size); + err = AVERROR(EINVAL); goto fail; } @@ -195,6 +196,7 @@ FF_ENABLE_DEPRECATION_WARNINGS } else { av_log(avctx, AV_LOG_ERROR, "Invalid -max_nal_size, " "specify a valid max_nal_size to use -slice_mode dyn\n"); + err = AVERROR(EINVAL); goto fail; } } |