aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/dv.c
diff options
context:
space:
mode:
authorRoman Shaposhnik <roman@shaposhnik.org>2003-10-03 01:08:10 +0000
committerRoman Shaposhnik <roman@shaposhnik.org>2003-10-03 01:08:10 +0000
commita686caf03ddd29b32abd1af5c6f887bc09e6d71b (patch)
tree6e1ea12178f7ad09aeca1f0e1071b0e4cd18b116 /libavformat/dv.c
parente692fd601de39ef541b93b7d135569b8232c7b2d (diff)
downloadffmpeg-a686caf03ddd29b32abd1af5c6f887bc09e6d71b.tar.gz
* fixing bug that prevented resampling the picture and
changing pix_fmt at the same time. * aspect ratio should be more reliable for DV now. Originally committed as revision 2338 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/dv.c')
-rw-r--r--libavformat/dv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/dv.c b/libavformat/dv.c
index a132f97dde..62992fa8fc 100644
--- a/libavformat/dv.c
+++ b/libavformat/dv.c
@@ -660,7 +660,7 @@ DVMuxContext* dv_init_mux(AVFormatContext* s)
c->has_audio = c->has_video = 0;
c->start_time = time(NULL);
c->aspect = 0; /* 4:3 is the default */
- if (vst->codec.aspect_ratio == 16.0 / 9.0)
+ if ((int)(vst->codec.aspect_ratio * 10) == 17) /* 16:9 */
c->aspect = 0x07;
if (fifo_init(&c->audio_data, 100*AVCODEC_MAX_AUDIO_FRAME_SIZE) < 0)