Quoting lance.lmw...@gmail.com (2020-04-18 06:52:49) > From: Limin Wang <lance.lmw...@gmail.com> > > Signed-off-by: Limin Wang <lance.lmw...@gmail.com> > --- > 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 ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".