[FFmpeg-devel] [PATCH v1 1/2] avformat/imfdec: use CPL start timecode if available

Zane van Iperen zane at zanevaniperen.com
Tue Sep 27 15:40:22 EEST 2022


Looks mostly ok from a cursory glance, just one minor nit.

On 23/8/22 15:10, pal at sandflow.com wrote:
>
> +static int ff_imf_xml_read_boolean(xmlNodePtr element, int *value)
> +{
> +    xmlChar *element_text = NULL;
> +    int ret = 0;
> +
> +    element_text = xmlNodeListGetString(element->doc, element->xmlChildrenNode, 1);
> +

No need for "element_text = NULL".

>   
> +static int digit_to_int(char digit)
> +{
> +    if (digit >= '0' && digit <= '9')
> +        return digit - '0';
> +    return -1;
> +}
> +

I feel like there should be a av_* helper for this, but apparently there isn't.
Maybe it's worth adding one in a future patch? av_isdigit() is in avstring.h, so
perhaps there?


More information about the ffmpeg-devel mailing list