You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
avcodec/libx265: Fix Uninitialized scalar variable
return error if unknown picture type encountered Fixes CID 1457234 Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
This commit is contained in:
@@ -550,6 +550,9 @@ static int libx265_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
|
||||
case X265_TYPE_BREF:
|
||||
pict_type = AV_PICTURE_TYPE_B;
|
||||
break;
|
||||
default:
|
||||
av_log(avctx, AV_LOG_ERROR, "Unknown picture type encountered.\n");
|
||||
return AVERROR_EXTERNAL;
|
||||
}
|
||||
|
||||
#if FF_API_CODED_FRAME
|
||||
|
Reference in New Issue
Block a user