[FFmpeg-soc] [soc] Add an mpegvideo wrapper around ff_report_decode_progress.

Benoit Fouet benoit.fouet at purplelabs.com
Tue Jun 24 09:17:16 CEST 2008


Alexander Strange wrote:
> diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c
> index f3212da..78114f6 100644
> --- a/libavcodec/mpegvideo.c
> +++ b/libavcodec/mpegvideo.c
> @@ -2371,3 +2371,9 @@ void ff_set_qscale(MpegEncContext * s, int qscale)
>      s->y_dc_scale= s->y_dc_scale_table[ qscale ];
>      s->c_dc_scale= s->c_dc_scale_table[ s->chroma_qscale ];
>  }
> +
> +void MPV_report_decode_progress(MpegEncContext *s)
> +{
> +	if (s->pict_type != FF_B_TYPE && !s->partitioned_frame)
> +		ff_report_decode_progress((AVFrame*)s->current_picture_ptr, s->mb_y);
> +}
>   

you should not use tabs

-- 
Benoit Fouet
Purple Labs S.A.
www.purplelabs.com



More information about the FFmpeg-soc mailing list