Mercurial > libavcodec.hg
comparison mpegvideo.c @ 1234:fc2a7eefa9cc libavcodec
svq3 decoder by anonymous
| author | michaelni |
|---|---|
| date | Fri, 09 May 2003 22:16:14 +0000 |
| parents | d63e0185a90f |
| children | 2fa34e615c76 |
comparison
equal
deleted
inserted
replaced
| 1233:5d66713e97e2 | 1234:fc2a7eefa9cc |
|---|---|
| 926 int i; | 926 int i; |
| 927 AVFrame *pic; | 927 AVFrame *pic; |
| 928 | 928 |
| 929 s->mb_skiped = 0; | 929 s->mb_skiped = 0; |
| 930 | 930 |
| 931 assert(s->last_picture_ptr==NULL || s->out_format != FMT_H264); | 931 assert(s->last_picture_ptr==NULL || s->out_format != FMT_H264 || s->codec_id == CODEC_ID_SVQ3); |
| 932 | 932 |
| 933 /* mark&release old frames */ | 933 /* mark&release old frames */ |
| 934 if (s->pict_type != B_TYPE && s->last_picture_ptr) { | 934 if (s->pict_type != B_TYPE && s->last_picture_ptr) { |
| 935 avctx->release_buffer(avctx, (AVFrame*)s->last_picture_ptr); | 935 avctx->release_buffer(avctx, (AVFrame*)s->last_picture_ptr); |
| 936 | 936 |
| 971 s->current_picture_ptr->quality= s->qscale; | 971 s->current_picture_ptr->quality= s->qscale; |
| 972 s->current_picture_ptr->key_frame= s->pict_type == I_TYPE; | 972 s->current_picture_ptr->key_frame= s->pict_type == I_TYPE; |
| 973 | 973 |
| 974 s->current_picture= *s->current_picture_ptr; | 974 s->current_picture= *s->current_picture_ptr; |
| 975 | 975 |
| 976 if(s->out_format != FMT_H264){ | 976 if(s->out_format != FMT_H264 || s->codec_id == CODEC_ID_SVQ3){ |
| 977 if (s->pict_type != B_TYPE) { | 977 if (s->pict_type != B_TYPE) { |
| 978 s->last_picture_ptr= s->next_picture_ptr; | 978 s->last_picture_ptr= s->next_picture_ptr; |
| 979 s->next_picture_ptr= s->current_picture_ptr; | 979 s->next_picture_ptr= s->current_picture_ptr; |
| 980 } | 980 } |
| 981 | 981 |
