Originally committed as revision 5513 to svn://svn.ffmpeg.org/ffmpeg/trunk
pull/126/head
Michael Niedermayer 19 years ago
parent cef7cc7232
commit 9e0db7d5aa
  1. 6
      ffmpeg.c

@ -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); if(ret <= 0) {
}
} else {
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;

Loading…
Cancel
Save