[FFmpeg-devel] [PATCH] Display decoded frame number on error

Nicolas George george at nsup.org
Fri Jul 12 13:14:31 EEST 2019


Remi Achard (12019-07-12):
> So I'm not supposed to use %llu as is the case here (sorry if I didn't
> understood your point) ?

Exactly, you need to use the format string for uint64_t, PRIu64 from
memory; check in the code base and standard.

> The use case would be to improve error diagnostic, eg. when you want to
> check a video integrity, you might want to know at what point in time
> corruption occurs and there is currently no way of knowing this if I'm not
> mistaken.

Then I think the timestamp of the frame would be a better choice. IIUC,
the field you print depends on the way ffmpeg processes the frames,
including seek: it is not robust.

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: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20190712/a29a1607/attachment.sig>


More information about the ffmpeg-devel mailing list