[FFmpeg-devel] [PATCH] avformat/dashdec: add ProgramInformation parser
Carl Eugen Hoyos
ceffmpeg at gmail.com
Mon Apr 15 13:59:02 EEST 2019
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.
Carl Eugen
More information about the ffmpeg-devel
mailing list