[Bug 750847] dashdemux: variables containing time information should be guint64 not gint64

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Wed Sep 16 09:46:52 PDT 2015


https://bugzilla.gnome.org/show_bug.cgi?id=750847

--- Comment #17 from Vincent Penquerc'h <vincent.penquerch at collabora.co.uk> ---
Did you mean you actually *want* leading whitespace to be allowed ? I've just
seem comment 2 from 
https://bugzilla.gnome.org/show_bug.cgi?id=752428, which hints at yes.

Also, sscanf doesn't care much about range, it happily parses and discards
upper bits:

$ ./a.out "3333333333"
ret 1, value 3333333333
$ ./a.out "33333333333"
ret 1, value 3268562261
$ ./a.out "333333333333"
ret 1, value 2620851541
$ ./a.out "3333333333333"
ret 1, value 438711637
$ ./a.out "33333333333333"
ret 1, value 92149077

#include <stdio.h>

int main(int argc,char **argv)
{
  unsigned int u;
  int ret=sscanf(argv[1], "%u", &u);
  printf("ret %d, value %u\n", ret, u);
  return 0;
}

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list