aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2012-08-05 22:55:21 +0300
committerMartin Storsjö <martin@martin.st>2012-08-06 00:48:58 +0300
commit6c071a2b389578b0607b4d4356520a43fac4b3bc (patch)
tree51f5acdbf5b276af24c79e8323ed6655822be972
parent2096857551660649dbe9a5aad7338b0872858575 (diff)
downloadffmpeg-6c071a2b389578b0607b4d4356520a43fac4b3bc.tar.gz
lavf: Declare an AVRational struct without a struct literal
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>
-rw-r--r--libavformat/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c
index 3630c6f93f..5b26c59bc6 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -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) {