diff --git a/include/usb_cam/formats/mjpeg.hpp b/include/usb_cam/formats/mjpeg.hpp index 2b40bb2b..b8d87f77 100644 --- a/include/usb_cam/formats/mjpeg.hpp +++ b/include/usb_cam/formats/mjpeg.hpp @@ -164,7 +164,6 @@ class MJPEG2RGB : public pixel_format_base free(m_avoptions); } if (m_avcodec_context) { - avcodec_close(m_avcodec_context); avcodec_free_context(&m_avcodec_context); } if (m_avframe_device) {