Mercurial > libavcodec.hg
comparison mpegvideo.c @ 1601:a70c07e13e8e libavcodec
flush fix (untested)
author | michael |
---|---|
date | Mon, 03 Nov 2003 17:42:50 +0000 |
parents | 079239998a38 |
children | 13a20c0594f2 |
comparison
equal
deleted
inserted
replaced
1600:bb0fa675533f | 1601:a70c07e13e8e |
---|---|
3208 for(i=0; i<MAX_PICTURE_COUNT; i++){ | 3208 for(i=0; i<MAX_PICTURE_COUNT; i++){ |
3209 if(s->picture[i].data[0] && ( s->picture[i].type == FF_BUFFER_TYPE_INTERNAL | 3209 if(s->picture[i].data[0] && ( s->picture[i].type == FF_BUFFER_TYPE_INTERNAL |
3210 || s->picture[i].type == FF_BUFFER_TYPE_USER)) | 3210 || s->picture[i].type == FF_BUFFER_TYPE_USER)) |
3211 avctx->release_buffer(avctx, (AVFrame*)&s->picture[i]); | 3211 avctx->release_buffer(avctx, (AVFrame*)&s->picture[i]); |
3212 } | 3212 } |
3213 s->last_picture_ptr = s->next_picture_ptr = NULL; | 3213 s->current_picture_ptr = s->last_picture_ptr = s->next_picture_ptr = NULL; |
3214 | 3214 |
3215 s->parse_context.state= -1; | 3215 s->parse_context.state= -1; |
3216 s->parse_context.frame_start_found= 0; | 3216 s->parse_context.frame_start_found= 0; |
3217 s->parse_context.overread= 0; | 3217 s->parse_context.overread= 0; |
3218 s->parse_context.overread_index= 0; | 3218 s->parse_context.overread_index= 0; |