[FFmpeg-devel] [PATCH]VDPAU support for MPEG-4 ASP
Diego Biurrun
diego
Sat Sep 5 12:59:12 CEST 2009
On Sat, Sep 05, 2009 at 12:16:14PM +0200, Carl Eugen Hoyos wrote:
>
> New patch attached, Carl Eugen
> --- libavcodec/vdpau.c (revision 19754)
> +++ libavcodec/vdpau.c (working copy)
> @@ -305,4 +306,80 @@
>
> + render->info.mpeg4.trd[1] = (s->time - s->pb_time + s->pp_time
> + + (s->pb_time >> 1))/s->pb_time
> + - (s->time - s->pb_time + (s->pb_time >> 1))/s->pb_time;
> + render->info.mpeg4.trb[1] = (s->time + (s->pb_time >> 1))/s->pb_time
> + - (s->time - s->pb_time + (s->pb_time >> 1))/s->pb_time;
Spaces around / would make this more readable.
> --- libavcodec/h263dec.c (revision 19754)
> +++ libavcodec/h263dec.c (working copy)
> @@ -582,6 +583,26 @@
> goto retry;
> }
>
> + if ( CONFIG_MPEG4_VDPAU_DECODER
> + && (avctx->pix_fmt == PIX_FMT_NONE)
> + && (s->avctx->codec->capabilities & CODEC_CAP_HWACCEL_VDPAU)) {
Is that meant to be && on the last line? Also, the parentheses are
unnecessary and the indentation is weird.
Diego
More information about the ffmpeg-devel
mailing list