[FFmpeg-devel] [PATCH v2 6/6] avcodec/qsvdec: Implement SEI parsing for QSV decoders

Soft Works softworkz at hotmail.com
Wed Jun 1 20:50:40 EEST 2022



> -----Original Message-----
> From: Xiang, Haihao <haihao.xiang at intel.com>
> Sent: Wednesday, June 1, 2022 7:20 PM
> To: ffmpeg-devel at ffmpeg.org
> Cc: haihao.xiang-at-intel.com at ffmpeg.org; softworkz at hotmail.com
> Subject: Re: [FFmpeg-devel] [PATCH v2 6/6] avcodec/qsvdec: Implement SEI
> parsing for QSV decoders
> 
> On Wed, 2022-06-01 at 09:06 +0000, softworkz wrote:
> > From: softworkz <softworkz at hotmail.com>
> >
> > Signed-off-by: softworkz <softworkz at hotmail.com>
> > ---
> >  libavcodec/qsvdec.c | 234 ++++++++++++++++++++++++++++++++++++++++++++
> >  1 file changed, 234 insertions(+)
> >
> > diff --git a/libavcodec/qsvdec.c b/libavcodec/qsvdec.c
> > index 5fc5bed4c8..3fc5dc3f20 100644
> > --- a/libavcodec/qsvdec.c
> > +++ b/libavcodec/qsvdec.c
> > @@ -49,6 +49,12 @@
> >  #include "hwconfig.h"
> >  #include "qsv.h"
> >  #include "qsv_internal.h"
> > +#include "h264dec.h"
> > +#include "h264_sei.h"
> > +#include "hevcdec.h"
> > +#include "hevc_ps.h"
> > +#include "hevc_sei.h"
> > +#include "mpeg12.h"
> >
> >
> 
> [...]


> > 8) < 0)
> > +            av_log(avctx, AV_LOG_ERROR, "Error initializing bitstream
> reader
> > SEI type: %d  Numbits %d error: %d\n", payload.Type, payload.NumBit, ret);
> > +        else {
> > +            ret = ff_h264_sei_decode(&sei, &gb, NULL, avctx);
> 
> The type of &sei is HEVCSEI *, however the type of the first argument of
> ff_h264_sei_decode() is H264SEIContext *. ff_h264_sei_decode() can't be used
> to
> parse hevc sei.
 
Oops - I know how it happened but I wonder that it compiled without error..

Anyway, it's fixed now.


> ps is not used.

Now it is :-)


Thanks a lot,
softworkz





More information about the ffmpeg-devel mailing list