> -----Original Message----- > From: libav-devel [mailto:[email protected]] On Behalf Of Luca > Barbato > Sent: Monday, February 12, 2018 5:29 PM > To: [email protected] > Subject: Re: [libav-devel] [PATCH] lavc/qsv: default PicStruct to progressive. > > On 12/02/2018 09:37, Ruiling Song wrote: > > the PicStruct is required by MediaSDK, so give a default value. > > hwupload does not work without this. > > > > Signed-off-by: Ruiling Song <[email protected]> > > --- > > libavutil/hwcontext_qsv.c | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/libavutil/hwcontext_qsv.c b/libavutil/hwcontext_qsv.c > > index 9fa603c..73b5f24 100644 > > --- a/libavutil/hwcontext_qsv.c > > +++ b/libavutil/hwcontext_qsv.c > > @@ -313,6 +313,7 @@ static int qsv_init_surface(AVHWFramesContext *ctx, > mfxFrameSurface1 *surf) > > surf->Info.CropH = ctx->height; > > surf->Info.FrameRateExtN = 25; > > surf->Info.FrameRateExtD = 1; > > + surf->Info.PicStruct = MFX_PICSTRUCT_PROGRESSIVE; > > > > return 0; > > } > > > > Sure. Can you help merge?
Ruiling _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
