diff options
author | Max Kellermann <max@duempel.org> | 2014-12-19 10:33:17 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-12-19 10:33:17 +0100 |
commit | f9abc561fbe864a7af10960ac0d5ac4112e5cc06 (patch) | |
tree | c6032d7baa55d2b6056e82a02b22764be6c5a82f /src/decoder/plugins/FfmpegDecoderPlugin.cxx | |
parent | 2e22ff2e3692291df2a62363dd8f488b65164e70 (diff) | |
download | mpd-f9abc561fbe864a7af10960ac0d5ac4112e5cc06.tar.gz mpd-f9abc561fbe864a7af10960ac0d5ac4112e5cc06.tar.xz mpd-f9abc561fbe864a7af10960ac0d5ac4112e5cc06.zip |
decoder/ffmpeg: remove unnecessary nullptr check for av_free()
Diffstat (limited to 'src/decoder/plugins/FfmpegDecoderPlugin.cxx')
-rw-r--r-- | src/decoder/plugins/FfmpegDecoderPlugin.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/decoder/plugins/FfmpegDecoderPlugin.cxx b/src/decoder/plugins/FfmpegDecoderPlugin.cxx index f78e67af3..6ddb16d1d 100644 --- a/src/decoder/plugins/FfmpegDecoderPlugin.cxx +++ b/src/decoder/plugins/FfmpegDecoderPlugin.cxx @@ -100,8 +100,7 @@ struct AvioStream { :decoder(_decoder), input(_input), io(nullptr) {} ~AvioStream() { - if (io != nullptr) - av_free(io); + av_free(io); } bool Open(); |