Mercurial > mplayer.hg
diff libmpcodecs/ae_lavc.c @ 17855:4b1930c9345c
do not randomly chop up packets, this isnt allowed in almost no container
author | michael |
---|---|
date | Mon, 13 Mar 2006 17:15:51 +0000 |
parents | 7d5343254436 |
children | d4d72e5eea07 |
line wrap: on
line diff
--- a/libmpcodecs/ae_lavc.c Mon Mar 13 16:56:10 2006 +0000 +++ b/libmpcodecs/ae_lavc.c Mon Mar 13 17:15:51 2006 +0000 @@ -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)