mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-26 15:02:58 +02:00
libarmbox/video.cpp: image_to_mpeg2 fix memleak
This commit is contained in:
@@ -346,6 +346,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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user