[FFmpeg-devel] [PATCH 1/2] lavu/opt: add AV_OPT_TYPE_DURATION.
Nicolas George
nicolas.george at normalesup.org
Sun Mar 17 21:31:08 CET 2013
Le septidi 27 ventôse, an CCXXI, Ronald S. Bultje a écrit :
> So why is it called duration? I don't see anything that is
> duration-specific in this description. Don't you mean "time"?
It corresponds to this:
* @param duration flag which tells how to interpret timestr, if not
* zero timestr is interpreted as a duration, otherwise as a date
* @return 0 in case of success, a negative value corresponding to an
* AVERROR code otherwise
*/
int av_parse_time(int64_t *timeval, const char *timestr, int duration);
This patch uses duration=1 when calling av_parse_time(). Maybe at some point
adding AV_OPT_TYPE_DATE or _TIME may be useful, but I had not yet
encountered the need.
Regards,
--
Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20130317/5ab768a1/attachment.asc>
More information about the ffmpeg-devel
mailing list