Skip to content

Commit 7cee781

Browse files
xdch47tomaszg7
authored andcommitted
Clean: Add 'const' qualifiers for type compatibility.
1 parent deb90ce commit 7cee781

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

decoder_plugins/ffmpeg/ffmpeg.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ struct ffmpeg_data
7979
AVIOContext *pb;
8080
AVStream *stream;
8181
AVCodecContext *enc;
82-
AVCodec *codec;
82+
const AVCodec *codec;
8383
AVDictionary *opts;
8484

8585
char *remain_buf;
@@ -864,7 +864,7 @@ static int ffmpeg_can_decode (struct io_stream *stream)
864864
{
865865
int res;
866866
AVProbeData probe_data;
867-
AVInputFormat *fmt;
867+
const AVInputFormat *fmt;
868868
char buf[8096 + AVPROBE_PADDING_SIZE] = {0};
869869

870870
res = io_peek (stream, buf, sizeof (buf));
@@ -1434,7 +1434,7 @@ static int ffmpeg_our_format_ext (const char *ext)
14341434

14351435
static int ffmpeg_our_format_mime (const char *mime_type)
14361436
{
1437-
AVOutputFormat *fmt;
1437+
const AVOutputFormat *fmt;
14381438

14391439
fmt = av_guess_format (NULL, NULL, mime_type);
14401440
return fmt ? 1 : 0;

0 commit comments

Comments
 (0)