Revision 58d5ff0a libavformat/utils.c

View differences:

libavformat/utils.c
3320 3320
    av_free(printed);
3321 3321
}
3322 3322

  
3323
#if FF_API_PARSE_FRAME_PARAM
3324
#include "libavutil/parseutils.h"
3325

  
3326
int parse_image_size(int *width_ptr, int *height_ptr, const char *str)
3327
{
3328
    return av_parse_video_size(width_ptr, height_ptr, str);
3329
}
3330

  
3331
int parse_frame_rate(int *frame_rate_num, int *frame_rate_den, const char *arg)
3332
{
3333
    AVRational frame_rate;
3334
    int ret = av_parse_video_rate(&frame_rate, arg);
3335
    *frame_rate_num= frame_rate.num;
3336
    *frame_rate_den= frame_rate.den;
3337
    return ret;
3338
}
3339
#endif
3340

  
3341 3323
int64_t av_gettime(void)
3342 3324
{
3343 3325
    struct timeval tv;

Also available in: Unified diff