diff h263dec.c @ 9027:3c141db76660 libavcodec

Approved hunk from the AVHWaccel patch by Gwenole Beauchesne.
author michael
date Tue, 24 Feb 2009 18:24:56 +0000
parents 15a3df8c01fd
children 0f95e4f0a3f5
line wrap: on
line diff
--- a/h263dec.c	Tue Feb 24 18:11:42 2009 +0000
+++ b/h263dec.c	Tue Feb 24 18:24:56 2009 +0000
@@ -134,7 +134,7 @@
 static int get_consumed_bytes(MpegEncContext *s, int buf_size){
     int pos= (get_bits_count(&s->gb)+7)>>3;
 
-    if(s->divx_packed){
+    if(s->divx_packed || s->avctx->hwaccel){
         //we would have to scan through the whole buf to handle the weird reordering ...
         return buf_size;
     }else if(s->flags&CODEC_FLAG_TRUNCATED){