lavf: Declare an AVRational struct without a struct literal
authorMartin Storsjö <martin@martin.st>
Sun, 5 Aug 2012 19:55:21 +0000 (22:55 +0300)
committerMartin Storsjö <martin@martin.st>
Sun, 5 Aug 2012 21:48:58 +0000 (00:48 +0300)
At this place, the normal way of initializing a struct works
fine, there's no need for a struct literal.

Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/utils.c

index 3630c6f..5b26c59 100644 (file)
@@ -2499,7 +2499,7 @@ int avformat_find_stream_info(AVFormatContext *ic, AVDictionary **options)
                 /* round guessed framerate to a "standard" framerate if it's
                  * within 1% of the original estimate*/
                 for (j = 1; j < MAX_STD_TIMEBASES; j++) {
-                    AVRational std_fps = (AVRational){get_std_framerate(j), 12*1001};
+                    AVRational std_fps = { get_std_framerate(j), 12*1001 };
                     double error = fabs(av_q2d(st->avg_frame_rate) / av_q2d(std_fps) - 1);
 
                     if (error < best_error) {