comparison mpeg12.c @ 1904:129236143f2e libavcodec

warning patrol
author mellum
date Wed, 24 Mar 2004 23:32:48 +0000
parents c94b19667d8b
children 284fb24da44d
comparison
equal deleted inserted replaced
1903:c94b19667d8b 1904:129236143f2e
240 /* put sequence header if needed */ 240 /* put sequence header if needed */
241 static void mpeg1_encode_sequence_header(MpegEncContext *s) 241 static void mpeg1_encode_sequence_header(MpegEncContext *s)
242 { 242 {
243 unsigned int vbv_buffer_size; 243 unsigned int vbv_buffer_size;
244 unsigned int fps, v; 244 unsigned int fps, v;
245 int n, i; 245 int i;
246 uint64_t time_code; 246 uint64_t time_code;
247 float best_aspect_error= 1E10; 247 float best_aspect_error= 1E10;
248 float aspect_ratio= av_q2d(s->avctx->sample_aspect_ratio); 248 float aspect_ratio= av_q2d(s->avctx->sample_aspect_ratio);
249 int constraint_parameter_flag; 249 int constraint_parameter_flag;
250 250
952 static VLC mbincr_vlc; 952 static VLC mbincr_vlc;
953 static VLC mb_ptype_vlc; 953 static VLC mb_ptype_vlc;
954 static VLC mb_btype_vlc; 954 static VLC mb_btype_vlc;
955 static VLC mb_pat_vlc; 955 static VLC mb_pat_vlc;
956 956
957 static void init_vlcs() 957 static void init_vlcs(void)
958 { 958 {
959 static int done = 0; 959 static int done = 0;
960 960
961 if (!done) { 961 if (!done) {
962 done = 1; 962 done = 1;
2819 } 2819 }
2820 2820
2821 input_size = buf_end - buf_ptr; 2821 input_size = buf_end - buf_ptr;
2822 2822
2823 if(avctx->debug & FF_DEBUG_STARTCODE){ 2823 if(avctx->debug & FF_DEBUG_STARTCODE){
2824 av_log(avctx, AV_LOG_DEBUG, "%3X at %d left %d\n", start_code, buf_ptr-buf, input_size); 2824 av_log(avctx, AV_LOG_DEBUG, "%3X at %zd left %d\n", start_code, buf_ptr-buf, input_size);
2825 } 2825 }
2826 2826
2827 /* prepare data for next start code */ 2827 /* prepare data for next start code */
2828 switch(start_code) { 2828 switch(start_code) {
2829 case SEQ_START_CODE: 2829 case SEQ_START_CODE: