[FFmpeg-devel] [RFC] lavu PTS printing utils

Reimar Döffinger Reimar.Doeffinger at gmx.de
Sat Jan 28 10:49:52 CET 2012


On 27 Jan 2012, at 13:35, Stefano Sabatini <stefasab at gmail.com> wrote:
> * av_ts2str(), av_ts2time2str() are retained for their usefulness,
>  although they should never be used in C++, we assume that C++
>  programmers using FFmpeg code have a clue regarding C/C++
>  incompatibilites, and they can still use the long av_ts_make*
>  functions

The bigger risk is C programmers not understanding their limitations, leading to random crashes or randomly corrupted data.
It might be advisable to recommend to use them only directly in function arguments but never stand-alone, which avoids the issue.


More information about the ffmpeg-devel mailing list