mp4ff: always free the mp4ff_read_sample() buffer

When mp4ff_read_sample() returns a value bigger than zero, it
guarantees that the buffer is set.  Remove the check.
This commit is contained in:
Max Kellermann 2009-02-18 19:08:52 +01:00
parent 5900ea5299
commit fcf65de46b
1 changed files with 2 additions and 2 deletions

View File

@ -287,8 +287,8 @@ mp4_decode(struct decoder *mpd_decoder, struct input_stream *input_stream)
sample_buffer = faacDecDecode(decoder, &frame_info, mp4_buffer);
#endif
if (mp4_buffer)
free(mp4_buffer);
free(mp4_buffer);
if (frame_info.error > 0) {
g_warning("faad2 error: %s\n",
faacDecGetErrorMessage(frame_info.error));