diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2004-10-28 12:12:33 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2004-10-28 12:12:33 +0000 |
commit | 13e5b1f684388ea102c55b40a8f8541d384bb836 (patch) | |
tree | 68f05436aad695d2bcb4479ab481ea92dd424db7 /libavcodec/h261.c | |
parent | 37a007826e0ef283700158a8b22baf7398b69e39 (diff) | |
download | ffmpeg-13e5b1f684388ea102c55b40a8f8541d384bb836.tar.gz |
cleanup
Originally committed as revision 3646 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/h261.c')
-rw-r--r-- | libavcodec/h261.c | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/libavcodec/h261.c b/libavcodec/h261.c index 0992e76be0..490e0d30a6 100644 --- a/libavcodec/h261.c +++ b/libavcodec/h261.c @@ -77,7 +77,7 @@ void ff_h261_loop_filter(MpegEncContext *s){ s->dsp.h261_loop_filter(dest_cr, uvlinesize); } -int ff_h261_get_picture_format(int width, int height){ +static int ff_h261_get_picture_format(int width, int height){ // QCIF if (width == 176 && height == 144) return 0; @@ -93,16 +93,10 @@ static void h261_encode_block(H261Context * h, DCTELEM * block, int n); static int h261_decode_block(H261Context *h, DCTELEM *block, int n, int coded); -static int h261_decode_mb(H261Context *h); -void ff_set_qscale(MpegEncContext * s, int qscale); void ff_h261_encode_picture_header(MpegEncContext * s, int picture_number){ H261Context * h = (H261Context *) s; - int format, coded_frame_rate, coded_frame_rate_base, temp_ref; - int best_clock_code=1; - int best_divisor=60; - coded_frame_rate= 1800000; - coded_frame_rate_base= (1000+best_clock_code)*best_divisor; + int format, temp_ref; align_put_bits(&s->pb); @@ -111,8 +105,8 @@ void ff_h261_encode_picture_header(MpegEncContext * s, int picture_number){ put_bits(&s->pb, 20, 0x10); /* PSC */ - temp_ref= s->picture_number * (int64_t)coded_frame_rate * s->avctx->frame_rate_base / - (coded_frame_rate_base * (int64_t)s->avctx->frame_rate); + temp_ref= s->picture_number * (int64_t)30000 * s->avctx->frame_rate_base / + (1001 * (int64_t)s->avctx->frame_rate); put_bits(&s->pb, 5, temp_ref & 0x1f); /* TemporalReference */ put_bits(&s->pb, 1, 0); /* split screen off */ |