Mercurial > libavcodec.hg
comparison h263dec.c @ 5887:83ac4620c6ed libavcodec
intrax8 decoder patch by "someone"
author | michael |
---|---|
date | Fri, 09 Nov 2007 21:37:48 +0000 |
parents | 7622ba533e05 |
children | 80103098c797 |
comparison
equal
deleted
inserted
replaced
5886:85c4aca68be3 | 5887:83ac4620c6ed |
---|---|
621 | 621 |
622 ff_er_frame_start(s); | 622 ff_er_frame_start(s); |
623 | 623 |
624 //the second part of the wmv2 header contains the MB skip bits which are stored in current_picture->mb_type | 624 //the second part of the wmv2 header contains the MB skip bits which are stored in current_picture->mb_type |
625 //which is not available before MPV_frame_start() | 625 //which is not available before MPV_frame_start() |
626 if (s->msmpeg4_version==5){ | 626 if (ENABLE_WMV2_DECODER && s->msmpeg4_version==5){ |
627 if(!ENABLE_WMV2_DECODER || ff_wmv2_decode_secondary_picture_header(s) < 0) | 627 ret = ff_wmv2_decode_secondary_picture_header(s); |
628 return -1; | 628 if(ret<0) return ret; |
629 if(ret==1) goto intrax8_decoded; | |
629 } | 630 } |
630 | 631 |
631 /* decode each macroblock */ | 632 /* decode each macroblock */ |
632 s->mb_x=0; | 633 s->mb_x=0; |
633 s->mb_y=0; | 634 s->mb_y=0; |
680 memcpy(s->bitstream_buffer, buf + current_pos, buf_size - current_pos); | 681 memcpy(s->bitstream_buffer, buf + current_pos, buf_size - current_pos); |
681 s->bitstream_buffer_size= buf_size - current_pos; | 682 s->bitstream_buffer_size= buf_size - current_pos; |
682 } | 683 } |
683 } | 684 } |
684 | 685 |
686 intrax8_decoded: | |
685 ff_er_frame_end(s); | 687 ff_er_frame_end(s); |
686 | 688 |
687 MPV_frame_end(s); | 689 MPV_frame_end(s); |
688 | 690 |
689 assert(s->current_picture.pict_type == s->current_picture_ptr->pict_type); | 691 assert(s->current_picture.pict_type == s->current_picture_ptr->pict_type); |