Commit f9abc561 authored by Max Kellermann's avatar Max Kellermann

decoder/ffmpeg: remove unnecessary nullptr check for av_free()

parent 2e22ff2e
...@@ -100,8 +100,7 @@ struct AvioStream { ...@@ -100,8 +100,7 @@ struct AvioStream {
:decoder(_decoder), input(_input), io(nullptr) {} :decoder(_decoder), input(_input), io(nullptr) {}
~AvioStream() { ~AvioStream() {
if (io != nullptr) av_free(io);
av_free(io);
} }
bool Open(); bool Open();
......
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