diff options
author | James Almer <jamrial@gmail.com> | 2024-06-24 19:57:05 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2024-06-24 20:00:14 -0300 |
commit | 1034296eac7e6b58a06b6474c9cd53ee86124d3c (patch) | |
tree | 6af6acbbd4ffac80a5718be1fd58dd4cd3f55b21 | |
parent | 6d4eba51f29b1755537afe31d992f5559a0b05b9 (diff) | |
download | ffmpeg-1034296eac7e6b58a06b6474c9cd53ee86124d3c.tar.gz |
avformat/dump: print Stereo3D AVRationals as float
Same as every other rational printed in this file.
Signed-off-by: James Almer <jamrial@gmail.com>
-rw-r--r-- | libavformat/dump.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/libavformat/dump.c b/libavformat/dump.c index b71b5356dc..7507434f92 100644 --- a/libavformat/dump.c +++ b/libavformat/dump.c @@ -265,11 +265,10 @@ static void dump_stereo3d(void *ctx, const AVPacketSideData *sd, int log_level) if (stereo->baseline) av_log(ctx, log_level, ", baseline: %"PRIu32"", stereo->baseline); if (stereo->horizontal_disparity_adjustment.num && stereo->horizontal_disparity_adjustment.den) - av_log(ctx, log_level, ", horizontal_disparity_adjustment: %d/%d", - stereo->horizontal_disparity_adjustment.num, stereo->horizontal_disparity_adjustment.den); + av_log(ctx, log_level, ", horizontal_disparity_adjustment: %0.4f", + av_q2d(stereo->horizontal_disparity_adjustment)); if (stereo->horizontal_field_of_view.num && stereo->horizontal_field_of_view.den) - av_log(ctx, log_level, ", horizontal_field_of_view: %d/%d", stereo->horizontal_field_of_view.num, - stereo->horizontal_field_of_view.den); + av_log(ctx, log_level, ", horizontal_field_of_view: %0.3f", av_q2d(stereo->horizontal_field_of_view)); if (stereo->flags & AV_STEREO3D_FLAG_INVERT) av_log(ctx, log_level, " (inverted)"); |