diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2003-10-21 00:23:46 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2003-10-21 00:23:46 +0400 |
commit | 5ff85f1d8b5721a9e7f0ca6e03f61f5d3a4c3664 (patch) | |
tree | 710ea001d862c7bdb29dd0e707f9dd9eee3f2c72 /ffplay.c | |
parent | 9dad924e22dc0e1a09013b588b43051b5baf428d (diff) |
AVRational
sample_aspect_ratio
aspect ratio in JPEG JFIF is SAR not DAR !
removed nonsense SAR guessing code
various related cleanups
bugs?
Originally committed as revision 2403 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffplay.c')
-rw-r--r-- | ffplay.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -330,7 +330,8 @@ static void video_image_display(VideoState *is) vp = &is->pictq[is->pictq_rindex]; if (vp->bmp) { /* XXX: use variable in the frame */ - aspect_ratio = is->video_st->codec.aspect_ratio; + aspect_ratio = av_q2d(is->video_st->codec.sample_aspect_ratio) + * is->video_st->codec.width / is->video_st->codec.height;; if (aspect_ratio <= 0.0) aspect_ratio = (float)is->video_st->codec.width / (float)is->video_st->codec.height; |