Commit 9e0db7d5 authored by Michael Niedermayer's avatar Michael Niedermayer

simplify

Originally committed as revision 5513 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent cef7cc72
......@@ -1375,10 +1375,8 @@ static int output_packet(AVInputStream *ist, int ist_index,
ret = avcodec_encode_audio(enc, bit_buffer, bit_buffer_size, samples);
}
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);
}
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