Skip to content

Commit

Permalink
Issue mika314#1: Use const struct AVCodec to fix a compilation error.
Browse files Browse the repository at this point in the history
  • Loading branch information
jlfranklin committed Jun 16, 2024
1 parent a4692d9 commit 289df5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion h264-decoder.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class H264Decoder
auto decode(std::span<const uint8_t> data) -> const VFrame *;

private:
struct AVCodec *codec;
const struct AVCodec *codec;
struct AVCodecContext *ctx;
struct AVFrame *yuvPicture;
struct AVFrame *rgbPicture;
Expand Down

0 comments on commit 289df5a

Please sign in to comment.