diff --git a/app/src/decoder.h b/app/src/decoder.h index 257f751a..e2972cb1 100644 --- a/app/src/decoder.h +++ b/app/src/decoder.h @@ -6,6 +6,7 @@ #include "trait/packet_sink.h" #include +#include #include #define DECODER_MAX_SINKS 2 diff --git a/app/src/icon.c b/app/src/icon.c index 1d670242..e709678f 100644 --- a/app/src/icon.c +++ b/app/src/icon.c @@ -2,6 +2,7 @@ #include #include +#include #include #include #include @@ -85,7 +86,7 @@ decode_image(const char *path) { AVCodecParameters *params = ctx->streams[stream]->codecpar; - AVCodec *codec = avcodec_find_decoder(params->codec_id); + const AVCodec *codec = avcodec_find_decoder(params->codec_id); if (!codec) { LOGE("Could not find image decoder"); goto close_input; diff --git a/app/src/stream.c b/app/src/stream.c index f8d73a27..c873c4ad 100644 --- a/app/src/stream.c +++ b/app/src/stream.c @@ -1,7 +1,6 @@ #include "stream.h" #include -#include #include #include @@ -192,7 +191,7 @@ static int run_stream(void *data) { struct stream *stream = data; - AVCodec *codec = avcodec_find_decoder(AV_CODEC_ID_H264); + const AVCodec *codec = avcodec_find_decoder(AV_CODEC_ID_H264); if (!codec) { LOGE("H.264 decoder not found"); goto end; diff --git a/app/src/stream.h b/app/src/stream.h index 362bc4a7..bdcefe39 100644 --- a/app/src/stream.h +++ b/app/src/stream.h @@ -5,6 +5,7 @@ #include #include +#include #include #include "trait/packet_sink.h" diff --git a/app/src/v4l2_sink.h b/app/src/v4l2_sink.h index 8737a607..339a61f2 100644 --- a/app/src/v4l2_sink.h +++ b/app/src/v4l2_sink.h @@ -3,13 +3,14 @@ #include "common.h" +#include +#include + #include "coords.h" #include "trait/frame_sink.h" #include "video_buffer.h" #include "util/tick.h" -#include - struct sc_v4l2_sink { struct sc_frame_sink frame_sink; // frame sink trait