comparison h263dec.c @ 758:cca620e89cf0 libavcodec

fixing h263 slice decoding (again)
author michaelni
date Sat, 19 Oct 2002 23:48:08 +0000
parents f2644bb12a43
children e858fe220ce0
comparison
equal deleted inserted replaced
757:d031d1575ceb 758:cca620e89cf0
202 MPV_decode_mb(s, s->block); 202 MPV_decode_mb(s, s->block);
203 203
204 if(ret<0){ 204 if(ret<0){
205 const int xy= s->mb_x + s->mb_y*s->mb_width; 205 const int xy= s->mb_x + s->mb_y*s->mb_width;
206 if(ret==SLICE_END){ 206 if(ret==SLICE_END){
207 //printf("%d %d %06X\n", s->mb_x, s->gb.size*8 - get_bits_count(&s->gb), show_bits(&s->gb, 24)); 207 //printf("%d %d %d %06X\n", s->mb_x, s->mb_y, s->gb.size*8 - get_bits_count(&s->gb), show_bits(&s->gb, 24));
208 s->error_status_table[xy]|= AC_END; 208 s->error_status_table[xy]|= AC_END;
209 if(!s->partitioned_frame) 209 if(!s->partitioned_frame)
210 s->error_status_table[xy]|= MV_END|DC_END; 210 s->error_status_table[xy]|= MV_END|DC_END;
211 211
212 s->padding_bug_score--; 212 s->padding_bug_score--;
418 { 418 {
419 avctx->aspected_width = s->aspected_width; 419 avctx->aspected_width = s->aspected_width;
420 avctx->aspected_height = s->aspected_height; 420 avctx->aspected_height = s->aspected_height;
421 } 421 }
422 422
423 if (s->codec_id==CODEC_ID_H263 && s->codec_id==CODEC_ID_H263)
424 s->gob_index = ff_h263_get_gob_height(s);
425
426 if (MPV_common_init(s) < 0) 423 if (MPV_common_init(s) < 0)
427 return -1; 424 return -1;
428 } 425 }
429 426
427 if((s->codec_id==CODEC_ID_H263 || s->codec_id==CODEC_ID_H263P))
428 s->gob_index = ff_h263_get_gob_height(s);
429
430 if(ret==FRAME_SKIPED) return get_consumed_bytes(s, buf_size); 430 if(ret==FRAME_SKIPED) return get_consumed_bytes(s, buf_size);
431 /* skip if the header was thrashed */ 431 /* skip if the header was thrashed */
432 if (ret < 0){ 432 if (ret < 0){
433 fprintf(stderr, "header damaged\n"); 433 fprintf(stderr, "header damaged\n");
434 return -1; 434 return -1;