Mercurial > mplayer.hg
changeset 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 | a63fa57ecbd7 |
children | 98f0e0542cb6 |
files | libmpcodecs/ae_lavc.c |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
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)