Quoting Luca Barbato (2015-07-29 22:51:05) > And restrict the string to ascii text. > > CC: [email protected] > > Signed-off-by: Luca Barbato <[email protected]> > --- > libavcodec/h264_sei.c | 57 > ++++++++++++++++++++++++++++++++++++++++++--------- > 1 file changed, 47 insertions(+), 10 deletions(-) > > diff --git a/libavcodec/h264_sei.c b/libavcodec/h264_sei.c > index 1f3844b..7361941 100644 > --- a/libavcodec/h264_sei.c > +++ b/libavcodec/h264_sei.c > - user_data[i] = 0; > - e = sscanf(user_data + 16, "x264 - core %d", &build); > - if (e == 1 && build > 0) > - h->x264_build = build; > + av_log(h->avctx, AV_LOG_DEBUG, "uuid 0x%02x 0x%02x 0x%02x 0x%02x " > + "0x%02x 0x%02x 0x%02x 0x%02x " > + "0x%02x 0x%02x 0x%02x 0x%02x " > + "0x%02x 0x%02x 0x%02x 0x%02x\n", > + uuid[0], uuid[1], uuid[2], uuid[3], > + uuid[4], uuid[5], uuid[6], uuid[7], > + uuid[8], uuid[9], uuid[10], uuid[11], > + uuid[12], uuid[13], uuid[14], uuid[15]);
Also, I think a loop would make this prettier. -- Anton Khirnov _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
