Browse Source

avcodec/libx264: return error if unknown picture type encountered

Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
tags/n4.3
Limin Wang 5 years ago
parent
commit
8b07751123
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      libavcodec/libx264.c

+ 2
- 1
libavcodec/libx264.c View File

@@ -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;
}
#if FF_API_CODED_FRAME
FF_DISABLE_DEPRECATION_WARNINGS


Loading…
Cancel
Save