diff options
author | Roman Shaposhnik <roman@shaposhnik.org> | 2003-04-29 01:51:38 +0000 |
---|---|---|
committer | Roman Shaposhnik <roman@shaposhnik.org> | 2003-04-29 01:51:38 +0000 |
commit | 880e8ba7307de38daa2644a7ae054e3156f0ab22 (patch) | |
tree | 6277032d0d91233a7cc4eebe291e0a23ca4f3f6c /libavcodec/dv.c | |
parent | cfcff6368572ed9ae3d7b6b428b1ff58fbcc2507 (diff) | |
download | ffmpeg-streaming-880e8ba7307de38daa2644a7ae054e3156f0ab22.zip ffmpeg-streaming-880e8ba7307de38daa2644a7ae054e3156f0ab22.tar.gz |
* fixing NTSC frame rate for DV streams
* let ffmpeg preserve 'aspect_ratio' for recoding.
Do we want to make it tweakable from the command line ?
Originally committed as revision 1827 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/dv.c')
-rw-r--r-- | libavcodec/dv.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libavcodec/dv.c b/libavcodec/dv.c index d686aca..b678960 100644 --- a/libavcodec/dv.c +++ b/libavcodec/dv.c @@ -538,16 +538,17 @@ static int dvvideo_decode_frame(AVCodecContext *avctx, width = 720; if (dsf) { avctx->frame_rate = 25; + avctx->frame_rate_base = 1; packet_size = PAL_FRAME_SIZE; height = 576; nb_dif_segs = 12; } else { - avctx->frame_rate = 30; + avctx->frame_rate = 30000; + avctx->frame_rate_base = 1001; packet_size = NTSC_FRAME_SIZE; height = 480; nb_dif_segs = 10; } - avctx->frame_rate_base= 1; /* NOTE: we only accept several full frames */ if (buf_size < packet_size) return -1; @@ -723,8 +724,8 @@ static int dvaudio_decode_frame(AVCodecContext *avctx, avctx->sample_rate = dv_audio_frequency[freq]; avctx->channels = 2; + avctx->bit_rate = avctx->channels * avctx->sample_rate * 16; // What about: - // avctx->bit_rate = // avctx->frame_size = *data_size = (dv_audio_min_samples[sys][freq] + smpls) * |