diff options
author | Roman Shaposhnik <roman@shaposhnik.org> | 2003-10-03 01:08:10 +0000 |
---|---|---|
committer | Roman Shaposhnik <roman@shaposhnik.org> | 2003-10-03 01:08:10 +0000 |
commit | a686caf03ddd29b32abd1af5c6f887bc09e6d71b (patch) | |
tree | 6e1ea12178f7ad09aeca1f0e1071b0e4cd18b116 /libavformat/dv.c | |
parent | e692fd601de39ef541b93b7d135569b8232c7b2d (diff) | |
download | ffmpeg-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.c | 2 |
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) |