Skip to content

Commit

Permalink
Switch to a const AVCodec *.
Browse files Browse the repository at this point in the history
This is because newer versions of avcodec return a const AVCodec *.

Signed-off-by: Chris Lalancette <[email protected]>
  • Loading branch information
clalancette committed Mar 19, 2024
1 parent 70ed391 commit 0e9fe35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/usb_cam/formats/mjpeg.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ class MJPEG2RGB : public pixel_format_base
std::cerr << m_averror_str << std::endl;
}

AVCodec * m_avcodec;
const AVCodec * m_avcodec;
AVCodecContext * m_avcodec_context;
AVCodecParserContext * m_avparser;
AVFrame * m_avframe_device;
Expand Down

0 comments on commit 0e9fe35

Please sign in to comment.