[FFmpeg-devel] [PATCH]Remove some long long occurences in the libraries

James Almer jamrial at gmail.com
Thu Jun 4 18:34:17 CEST 2015


On 04/06/15 9:58 AM, Carl Eugen Hoyos wrote:
> diff --git a/libavdevice/iec61883.c b/libavdevice/iec61883.c
> index b29aad1..152a9f7 100644
> --- a/libavdevice/iec61883.c
> +++ b/libavdevice/iec61883.c
> @@ -271,7 +271,7 @@ static int iec61883_read_header(AVFormatContext *context)
>      }
>  
>      if (dv->device_guid) {
> -        if (sscanf(dv->device_guid, "%llx", (long long unsigned int *)&guid) != 1) {
> +        if (sscanf(dv->device_guid, "%"PRIu64, &guid) != 1) {

SCNu64

>              av_log(context, AV_LOG_INFO, "Invalid dvguid parameter: %s\n",
>                     dv->device_guid);
>              goto fail;



More information about the ffmpeg-devel mailing list