aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-02-18 19:08:52 +0100
committerMax Kellermann <max@duempel.org>2009-02-18 19:08:52 +0100
commitfcf65de46bb8987c1237d7114d3b8e411b8f0d2a (patch)
tree4bde90215bb959ba4ad90bcef7d53c0d7f2fdb75 /src/decoder
parent5900ea5299bf2b3de46e7c1a32c2ac747249da89 (diff)
downloadmpd-fcf65de46bb8987c1237d7114d3b8e411b8f0d2a.tar.gz
mpd-fcf65de46bb8987c1237d7114d3b8e411b8f0d2a.tar.xz
mpd-fcf65de46bb8987c1237d7114d3b8e411b8f0d2a.zip
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.
Diffstat (limited to '')
-rw-r--r--src/decoder/mp4ff_plugin.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/decoder/mp4ff_plugin.c b/src/decoder/mp4ff_plugin.c
index ddbb768e3..6e799b7ac 100644
--- a/src/decoder/mp4ff_plugin.c
+++ b/src/decoder/mp4ff_plugin.c
@@ -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));