Commit fb342347 authored by michael's avatar michael

simplify


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@5513 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 4f048b32
...@@ -1375,10 +1375,8 @@ static int output_packet(AVInputStream *ist, int ist_index, ...@@ -1375,10 +1375,8 @@ static int output_packet(AVInputStream *ist, int ist_index,
ret = avcodec_encode_audio(enc, bit_buffer, bit_buffer_size, samples); ret = avcodec_encode_audio(enc, bit_buffer, bit_buffer_size, samples);
} }
enc->frame_size = fs_tmp; enc->frame_size = fs_tmp;
if(ret <= 0) {
ret = avcodec_encode_audio(enc, bit_buffer, bit_buffer_size, NULL);
} }
} else { if(ret <= 0) {
ret = avcodec_encode_audio(enc, bit_buffer, bit_buffer_size, NULL); ret = avcodec_encode_audio(enc, bit_buffer, bit_buffer_size, NULL);
} }
audio_size += ret; audio_size += ret;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment