1
0
mirror of https://github.com/mpv-player/mpv synced 2025-04-17 12:54:40 +00:00

do not randomly chop up packets, this isnt allowed in almost no container

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17856 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
michael 2006-03-13 17:15:51 +00:00
parent a059a420e9
commit 4f3dfe9738

View File

@ -102,8 +102,7 @@ static int encode_lavc(audio_encoder_t *encoder, uint8_t *dest, void *src, int s
{
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 close_lavc(audio_encoder_t *encoder)
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)