[FFmpeg-devel] [PATCH] vc1.c: add support for HWAccel (take 3)

Kostya kostya.shishkov
Tue Mar 10 19:12:13 CET 2009


On Tue, Mar 10, 2009 at 04:37:00PM +0100, Gwenole Beauchesne wrote:
> On Fri, 27 Feb 2009, Benoit Fouet wrote:
> 
> >>@@ -4277,6 +4279,15 @@ static int vc1_decode_frame(AVCodecContext *avctx,
> >>     s->me.qpel_put= s->dsp.put_qpel_pixels_tab;
> >>     s->me.qpel_avg= s->dsp.avg_qpel_pixels_tab;
> >>
> >>+    if (avctx->hwaccel) {
> >>+        if (avctx->hwaccel->start_frame(avctx, buf, buf_size) < 0)
> >>+            return -1;
> >>+        if (avctx->hwaccel->decode_slice(avctx, buf_start, (buf +
> >>buf_size) - buf_start) < 0)
> >>+            return -1;
> >>+        if (avctx->hwaccel->end_frame(avctx) < 0)
> >>+            return -1;
> >>+    }
> >>
> >
> >those if()'s can be merged
> 
> Here is a new patch, but this really looks awful to me...

I liked the previous patch better.
 
> Anyhow, that also serves as a reminder/ping for Kostya. ;-)

http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/2009-March/064942.html





More information about the ffmpeg-devel mailing list