comparison mpegvideo.c @ 1395:b2ac20ff1458 libavcodec

clear bitstream buffers in AVCodec.flush()
author michaelni
date Sat, 02 Aug 2003 22:01:02 +0000
parents ba99a78bcb37
children e380ac39024a
comparison
equal deleted inserted replaced
1394:951a4448c05a 1395:b2ac20ff1458
3093 if(s->picture[i].data[0] && ( s->picture[i].type == FF_BUFFER_TYPE_INTERNAL 3093 if(s->picture[i].data[0] && ( s->picture[i].type == FF_BUFFER_TYPE_INTERNAL
3094 || s->picture[i].type == FF_BUFFER_TYPE_USER)) 3094 || s->picture[i].type == FF_BUFFER_TYPE_USER))
3095 avctx->release_buffer(avctx, (AVFrame*)&s->picture[i]); 3095 avctx->release_buffer(avctx, (AVFrame*)&s->picture[i]);
3096 } 3096 }
3097 s->last_picture_ptr = s->next_picture_ptr = NULL; 3097 s->last_picture_ptr = s->next_picture_ptr = NULL;
3098
3099 s->parse_context.state= -1;
3100 s->parse_context.frame_start_found= 0;
3101 s->parse_context.overread= 0;
3102 s->parse_context.overread_index= 0;
3103 s->parse_context.index= 0;
3104 s->parse_context.last_index= 0;
3098 } 3105 }
3099 3106
3100 #ifdef CONFIG_ENCODERS 3107 #ifdef CONFIG_ENCODERS
3101 void ff_copy_bits(PutBitContext *pb, uint8_t *src, int length) 3108 void ff_copy_bits(PutBitContext *pb, uint8_t *src, int length)
3102 { 3109 {