comparison h263dec.c @ 9012:15a3df8c01fd libavcodec

More approved hunks for VAAPI & our new and cleaner hwaccel API. patch by Gwenole Beauchesne gbeauchesne splitted-desktop com
author michael
date Mon, 23 Feb 2009 13:44:51 +0000
parents 8ec0175bbcb5
children 3c141db76660
comparison
equal deleted inserted replaced
9011:90c99bda19f5 9012:15a3df8c01fd
23 /** 23 /**
24 * @file libavcodec/h263dec.c 24 * @file libavcodec/h263dec.c
25 * H.263 decoder. 25 * H.263 decoder.
26 */ 26 */
27 27
28 #include "internal.h"
28 #include "avcodec.h" 29 #include "avcodec.h"
29 #include "dsputil.h" 30 #include "dsputil.h"
30 #include "mpegvideo.h" 31 #include "mpegvideo.h"
31 #include "h263_parser.h" 32 #include "h263_parser.h"
32 #include "mpeg4video_parser.h" 33 #include "mpeg4video_parser.h"
156 157
157 s->resync_mb_x= s->mb_x; 158 s->resync_mb_x= s->mb_x;
158 s->resync_mb_y= s->mb_y; 159 s->resync_mb_y= s->mb_y;
159 160
160 ff_set_qscale(s, s->qscale); 161 ff_set_qscale(s, s->qscale);
162
163 if (s->avctx->hwaccel)
164 return 0;
161 165
162 if(s->partitioned_frame){ 166 if(s->partitioned_frame){
163 const int qscale= s->qscale; 167 const int qscale= s->qscale;
164 168
165 if(s->codec_id==CODEC_ID_MPEG4){ 169 if(s->codec_id==CODEC_ID_MPEG4){