mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-06 07:40:00 +08:00
avcodec_flush_buffers()
Originally committed as revision 420 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user