Another AVhwaccel hunk from Gwenole Beauchesne.
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 24 Feb 2009 18:39:42 +0000 (18:39 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 24 Feb 2009 18:39:42 +0000 (18:39 +0000)
Originally committed as revision 17565 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/h263dec.c

index 3b1cf8c..7fb9cb0 100644 (file)
@@ -687,6 +687,11 @@ retry:
 intrax8_decoded:
     ff_er_frame_end(s);
 
+    if (avctx->hwaccel) {
+        if (avctx->hwaccel->end_frame(avctx) < 0)
+            return -1;
+    }
+
     MPV_frame_end(s);
 
 assert(s->current_picture.pict_type == s->current_picture_ptr->pict_type);