Quoting [email protected] (2020-04-18 06:52:49) > From: Limin Wang <[email protected]> > > Signed-off-by: Limin Wang <[email protected]> > --- > libavcodec/libx264.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/libavcodec/libx264.c b/libavcodec/libx264.c > index edd343e..3fa2311 100644 > --- a/libavcodec/libx264.c > +++ b/libavcodec/libx264.c > @@ -476,7 +476,8 @@ static int X264_frame(AVCodecContext *ctx, AVPacket *pkt, > const AVFrame *frame, > pict_type = AV_PICTURE_TYPE_B; > break; > default: > - pict_type = AV_PICTURE_TYPE_NONE; > + av_log(ctx, AV_LOG_ERROR, "Unknown picture type encountered.\n"); > + return AVERROR_EXTERNAL;
Why should that cause encoding to fail? And when would this happen? -- Anton Khirnov _______________________________________________ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".
