mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-23 18:10:56 +01:00
avcodec/videotoolboxenc: pass error code through
Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
This commit is contained in:
parent
5ab429d8df
commit
0ef85a5471
1 changed files with 2 additions and 2 deletions
|
|
@ -2156,7 +2156,7 @@ static int get_cv_pixel_info(
|
|||
|
||||
status = get_cv_pixel_format(avctx, av_format, av_color_range, color, &range_guessed);
|
||||
if (status)
|
||||
return AVERROR(EINVAL);
|
||||
return status;
|
||||
|
||||
if (range_guessed) {
|
||||
if (!vtctx->warned_color_range) {
|
||||
|
|
@ -2338,7 +2338,7 @@ static int create_cv_pixel_buffer(AVCodecContext *avctx,
|
|||
status
|
||||
);
|
||||
|
||||
return AVERROR_EXTERNAL;
|
||||
return status;
|
||||
}
|
||||
|
||||
pix_buf_pool = VTCompressionSessionGetPixelBufferPool(vtctx->session);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue