avcodec_flush_buffers()

Originally committed as revision 420 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer
2002-04-24 01:24:06 +00:00
parent eeba58ccc7
commit 1c2a8c7f14
6 changed files with 29 additions and 8 deletions

View File

@ -22,6 +22,7 @@
#include "common.h"
#include "dsputil.h"
#include "avcodec.h"
#include "mpegvideo.h"
#ifdef HAVE_MALLOC_H
#include <malloc.h>
#else
@ -479,6 +480,14 @@ PCM_CODEC(CODEC_ID_PCM_MULAW, pcm_mulaw);
#undef PCM_CODEC
}
/* this should be called after seeking and before trying to decode the next frame */
void avcodec_flush_buffers(AVCodecContext *avctx)
{
MpegEncContext *s = avctx->priv_data;
s->num_available_buffers=0;
}
static int encode_init(AVCodecContext *s)
{
return 0;