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

Pierre-Anthony Lemieux pal at sandflow.com
Sun Oct 2 19:43:40 EEST 2022


On Tue, Sep 27, 2022 at 5:40 AM Zane van Iperen <zane at zanevaniperen.com> wrote:
>
> 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".

Addressed at v2.
>
> >
> > +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?

Ok. This probably requires more planning since the idioms `x >= '0' &&
x <= '9'` and `x >= 'a' && x <= 'z'` are used in many places.

> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".


More information about the ffmpeg-devel mailing list