comparison utils.c @ 341:bf26081c373c libavcodec

avcodec_flush_buffers()
author michaelni
date Wed, 24 Apr 2002 01:24:06 +0000
parents 8899c3b35b57
children 1ee4ba4ca783
comparison
equal deleted inserted replaced
340:f24c77638413 341:bf26081c373c
20 #include <string.h> 20 #include <string.h>
21 #include <errno.h> 21 #include <errno.h>
22 #include "common.h" 22 #include "common.h"
23 #include "dsputil.h" 23 #include "dsputil.h"
24 #include "avcodec.h" 24 #include "avcodec.h"
25 #include "mpegvideo.h"
25 #ifdef HAVE_MALLOC_H 26 #ifdef HAVE_MALLOC_H
26 #include <malloc.h> 27 #include <malloc.h>
27 #else 28 #else
28 #include <stdlib.h> 29 #include <stdlib.h>
29 #endif 30 #endif
477 PCM_CODEC(CODEC_ID_PCM_MULAW, pcm_mulaw); 478 PCM_CODEC(CODEC_ID_PCM_MULAW, pcm_mulaw);
478 479
479 #undef PCM_CODEC 480 #undef PCM_CODEC
480 } 481 }
481 482
483 /* this should be called after seeking and before trying to decode the next frame */
484 void avcodec_flush_buffers(AVCodecContext *avctx)
485 {
486 MpegEncContext *s = avctx->priv_data;
487 s->num_available_buffers=0;
488 }
489
490
482 static int encode_init(AVCodecContext *s) 491 static int encode_init(AVCodecContext *s)
483 { 492 {
484 return 0; 493 return 0;
485 } 494 }
486 495