libarmbox/video.cpp: image_to_mpeg2 fix memleak

Origin commit data
------------------
Branch: master
Commit: 9e46e4e950
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2020-01-05 (Sun, 05 Jan 2020)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Jacek Jendrzej
2020-01-05 17:45:32 +01:00
committed by vanhofen
parent ad1b47c708
commit 15505226e6

View File

@@ -364,6 +364,7 @@ int image_to_mpeg2(const char *image_name, int fd)
av_packet_unref(&packet);
}
avcodec_close(codecContext);
av_free(codecContext);
}
avformat_close_input(&formatContext);
}