[Ffmpeg-cvslog] CVS: ffmpeg/libavcodec utils.c,1.143,1.144
Michael Niedermayer CVS
michael
Thu Jul 14 17:30:41 CEST 2005
Update of /cvsroot/ffmpeg/ffmpeg/libavcodec
In directory mail:/var2/tmp/cvs-serv26842
Modified Files:
utils.c
Log Message:
check for CODEC_CAP_DELAY in audio decoders too
Index: utils.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavcodec/utils.c,v
retrieving revision 1.143
retrieving revision 1.144
diff -u -d -r1.143 -r1.144
--- utils.c 17 Jun 2005 15:02:53 -0000 1.143
+++ utils.c 14 Jul 2005 15:30:39 -0000 1.144
@@ -642,9 +642,12 @@
int ret;
*frame_size_ptr= 0;
- ret = avctx->codec->decode(avctx, samples, frame_size_ptr,
- buf, buf_size);
- avctx->frame_number++;
+ if((avctx->codec->capabilities & CODEC_CAP_DELAY) || buf_size){
+ ret = avctx->codec->decode(avctx, samples, frame_size_ptr,
+ buf, buf_size);
+ avctx->frame_number++;
+ }else
+ ret= 0;
return ret;
}
More information about the ffmpeg-cvslog
mailing list