You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avcodec/videotoolboxenc: pass error code through
Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
This commit is contained in:
@@ -2156,7 +2156,7 @@ static int get_cv_pixel_info(
|
|||||||
|
|
||||||
status = get_cv_pixel_format(avctx, av_format, av_color_range, color, &range_guessed);
|
status = get_cv_pixel_format(avctx, av_format, av_color_range, color, &range_guessed);
|
||||||
if (status)
|
if (status)
|
||||||
return AVERROR(EINVAL);
|
return status;
|
||||||
|
|
||||||
if (range_guessed) {
|
if (range_guessed) {
|
||||||
if (!vtctx->warned_color_range) {
|
if (!vtctx->warned_color_range) {
|
||||||
@@ -2338,7 +2338,7 @@ static int create_cv_pixel_buffer(AVCodecContext *avctx,
|
|||||||
status
|
status
|
||||||
);
|
);
|
||||||
|
|
||||||
return AVERROR_EXTERNAL;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
pix_buf_pool = VTCompressionSessionGetPixelBufferPool(vtctx->session);
|
pix_buf_pool = VTCompressionSessionGetPixelBufferPool(vtctx->session);
|
||||||
|
Reference in New Issue
Block a user