[FFmpeg-devel] [PATCH] avformat/dashdec: add ProgramInformation parser

Steven Liu lingjiujianke at gmail.com
Mon Apr 15 14:18:11 EEST 2019


Carl Eugen Hoyos <ceffmpeg at gmail.com> 于2019年4月15日周一 下午6:59写道:
>
> 2019-04-15 8:26 GMT+02:00, Steven Liu <lq at chinaffmpeg.org>:
> > Signed-off-by: Steven Liu <lq at chinaffmpeg.org>
> > ---
> >  libavformat/dashdec.c | 32 ++++++++++++++++++++++++++++++++
> >  1 file changed, 32 insertions(+)
> >
> > diff --git a/libavformat/dashdec.c b/libavformat/dashdec.c
> > index eed149cd1a..b6394403b9 100644
> > --- a/libavformat/dashdec.c
> > +++ b/libavformat/dashdec.c
> > @@ -1161,6 +1161,36 @@ static int
> > parse_manifest_adaptationset(AVFormatContext *s, const char *url,
> >      return 0;
> >  }
> >
> > +static int parse_programinformation(AVFormatContext *s, xmlNodePtr node)
> > +{
> > +    xmlNodePtr programinfo_node = NULL;
> > +    xmlChar *val = NULL;
>
> > +    DASHContext *c = s->priv_data;
>
> Unused variable.
>
> > +
> > +    programinfo_node = xmlFirstElementChild(node);
> > +    while (programinfo_node) {
>
> > +        if (!av_strcasecmp((const char *)programinfo_node->name,
>
> Unneeded cast.
>
> > (const char *)"Title")) {
>
> Unneeded cast.
>

Ok, will update new version.

Thanks Carl


More information about the ffmpeg-devel mailing list