[FFmpeg-devel] [PATCH v2 2/2] lavf/url: rewrite ff_make_absolute_url() using ff_url_decompose().

Nicolas George george at nsup.org
Wed Aug 5 20:05:58 EEST 2020


Nicolas George (12020-08-05):
> --- a/libavformat/url.c
> +++ b/libavformat/url.c
> @@ -27,6 +27,7 @@
>  #if CONFIG_NETWORK
>  #include "network.h"
>  #endif

> +#include "libavutil/avassert.h"

Moved this to the first patch.

>  #include "libavutil/avstring.h"
> +    if (use_base_path) {
> +        base_path_end = ub.url_component_end_path;
> +        if (URL_COMPONENT_HAVE(uc, path))
> +            while (base_path_end > ub.path && base_path_end[-1] != '/')
> +                base_path_end--;
>      }

> +    if (!use_base_path && !URL_COMPONENT_HAVE(uc, path))
> +        simplify_path = 0;

Added /* No path at all, leave it */ before this.

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20200805/ba293940/attachment.sig>


More information about the ffmpeg-devel mailing list