2018-10-31 11:23 GMT+01:00, hwren <hwr...@126.com>: > Signed-off-by: hwren <hwr...@126.com> > --- > libavcodec/libdavs2.c | 17 ++++++++++++++++- > 1 file changed, 16 insertions(+), 1 deletion(-) > > diff --git a/libavcodec/libdavs2.c b/libavcodec/libdavs2.c > index a1815d2..d7bcaa3 100644 > --- a/libavcodec/libdavs2.c > +++ b/libavcodec/libdavs2.c > @@ -94,11 +94,26 @@ static int davs2_dump_frames(AVCodecContext *avctx, > davs2_picture_t *pic, > pic->widths[plane] * bytes_per_sample); > } > > + switch (pic->type) { > + case DAVS2_PIC_I: > + frame->pict_type = AV_PICTURE_TYPE_I; > + break; > + case DAVS2_PIC_P: > + frame->pict_type = AV_PICTURE_TYPE_P; > + break; > + case DAVS2_PIC_B: > + case DAVS2_PIC_F: > + frame->pict_type = AV_PICTURE_TYPE_B; > + break;
> + default: > + frame->pict_type = AV_PICTURE_TYPE_NONE; What other DAVS2_PIC values exist? Carl Eugen _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel