[MPlayer-cvslog] CVS: main/libmpcodecs ae_lavc.c,1.9,1.10
Michael Niedermayer CVS
syncmail at mplayerhq.hu
Mon Mar 13 18:15:54 CET 2006
CVS change done by Michael Niedermayer CVS
Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var2/tmp/cvs-serv17966
Modified Files:
ae_lavc.c
Log Message:
do not randomly chop up packets, this isnt allowed in almost no container
Index: ae_lavc.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/ae_lavc.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- ae_lavc.c 13 Mar 2006 02:40:09 -0000 1.9
+++ ae_lavc.c 13 Mar 2006 17:15:51 -0000 1.10
@@ -102,8 +102,7 @@
{
int n;
n = avcodec_encode_audio(lavc_actx, dest, size, src);
- if(n > compressed_frame_size)
- compressed_frame_size = n; //it's valid because lavc encodes in cbr mode
+ compressed_frame_size = n;
return n;
}
@@ -116,7 +115,9 @@
static int get_frame_size(audio_encoder_t *encoder)
{
- return compressed_frame_size;
+ int sz = compressed_frame_size;
+ compressed_frame_size = 0;
+ return sz;
}
static uint32_t lavc_find_atag(char *codec)
More information about the MPlayer-cvslog
mailing list