# HG changeset patch # User michael # Date 1235499896 0 # Node ID 3c141db766603d36ab7214bf8c7d0c3f7df1de0c # Parent 19bbd145737200b93f31b310bf37407426a78c0e Approved hunk from the AVHWaccel patch by Gwenole Beauchesne. diff -r 19bbd1457372 -r 3c141db76660 h263dec.c --- 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){