# HG changeset patch # User michael # Date 1142270151 0 # Node ID 4b1930c9345c75dd5ac23880f03976b9df62fcb0 # Parent a63fa57ecbd7195f78df790cf5df4fd8c8f08937 do not randomly chop up packets, this isnt allowed in almost no container diff -r a63fa57ecbd7 -r 4b1930c9345c libmpcodecs/ae_lavc.c --- 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)