Mercurial > libavcodec.hg
comparison h263.c @ 4122:daae66c03857 libavcodec
Replace most of the %lld and %llx by their (cleaner) PRI*64 counterparts.
patch by Steve Lhomme, slhomme divxcorp com
author | diego |
---|---|
date | Wed, 01 Nov 2006 22:39:58 +0000 |
parents | 34fdffe98bd0 |
children | 0f28fc219799 |
comparison
equal
deleted
inserted
replaced
4121:fb40acd09af3 | 4122:daae66c03857 |
---|---|
5910 s->pp_field_time= ( ROUNDED_DIV(s->last_non_b_time, s->t_frame) | 5910 s->pp_field_time= ( ROUNDED_DIV(s->last_non_b_time, s->t_frame) |
5911 - ROUNDED_DIV(s->last_non_b_time - s->pp_time, s->t_frame))*2; | 5911 - ROUNDED_DIV(s->last_non_b_time - s->pp_time, s->t_frame))*2; |
5912 s->pb_field_time= ( ROUNDED_DIV(s->time, s->t_frame) | 5912 s->pb_field_time= ( ROUNDED_DIV(s->time, s->t_frame) |
5913 - ROUNDED_DIV(s->last_non_b_time - s->pp_time, s->t_frame))*2; | 5913 - ROUNDED_DIV(s->last_non_b_time - s->pp_time, s->t_frame))*2; |
5914 } | 5914 } |
5915 //av_log(s->avctx, AV_LOG_DEBUG, "last nonb %Ld last_base %d time %Ld pp %d pb %d t %d ppf %d pbf %d\n", s->last_non_b_time, s->last_time_base, s->time, s->pp_time, s->pb_time, s->t_frame, s->pp_field_time, s->pb_field_time); | 5915 //av_log(s->avctx, AV_LOG_DEBUG, "last nonb %"PRId64" last_base %d time %"PRId64" pp %d pb %d t %d ppf %d pbf %d\n", s->last_non_b_time, s->last_time_base, s->time, s->pp_time, s->pb_time, s->t_frame, s->pp_field_time, s->pb_field_time); |
5916 | 5916 |
5917 if(s->avctx->time_base.num) | 5917 if(s->avctx->time_base.num) |
5918 s->current_picture_ptr->pts= (s->time + s->avctx->time_base.num/2) / s->avctx->time_base.num; | 5918 s->current_picture_ptr->pts= (s->time + s->avctx->time_base.num/2) / s->avctx->time_base.num; |
5919 else | 5919 else |
5920 s->current_picture_ptr->pts= AV_NOPTS_VALUE; | 5920 s->current_picture_ptr->pts= AV_NOPTS_VALUE; |
5927 if (get_bits1(gb) != 1){ | 5927 if (get_bits1(gb) != 1){ |
5928 if(s->avctx->debug&FF_DEBUG_PICT_INFO) | 5928 if(s->avctx->debug&FF_DEBUG_PICT_INFO) |
5929 av_log(s->avctx, AV_LOG_ERROR, "vop not coded\n"); | 5929 av_log(s->avctx, AV_LOG_ERROR, "vop not coded\n"); |
5930 return FRAME_SKIPPED; | 5930 return FRAME_SKIPPED; |
5931 } | 5931 } |
5932 //printf("time %d %d %d || %Ld %Ld %Ld\n", s->time_increment_bits, s->avctx->time_base.den, s->time_base, | 5932 //printf("time %d %d %d || %"PRId64" %"PRId64" %"PRId64"\n", s->time_increment_bits, s->avctx->time_base.den, s->time_base, |
5933 //s->time, s->last_non_b_time, s->last_non_b_time - s->pp_time); | 5933 //s->time, s->last_non_b_time, s->last_non_b_time - s->pp_time); |
5934 if (s->shape != BIN_ONLY_SHAPE && ( s->pict_type == P_TYPE | 5934 if (s->shape != BIN_ONLY_SHAPE && ( s->pict_type == P_TYPE |
5935 || (s->pict_type == S_TYPE && s->vol_sprite_usage==GMC_SPRITE))) { | 5935 || (s->pict_type == S_TYPE && s->vol_sprite_usage==GMC_SPRITE))) { |
5936 /* rounding type for motion estimation */ | 5936 /* rounding type for motion estimation */ |
5937 s->no_rounding = get_bits1(gb); | 5937 s->no_rounding = get_bits1(gb); |