diff options
author | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2017-02-26 12:34:41 +0100 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2017-03-16 21:14:34 +0100 |
commit | 5dd7ea9f569b92c1e3de10eff46b80f3dfa63a1d (patch) | |
tree | 6b63a646dd3f1d3ff7373d9e126ef2903f24d1ac /libavcodec/internal.h | |
parent | 0d34dbc27277d65e58a675d91d810903a3e21fac (diff) | |
download | ffmpeg-5dd7ea9f569b92c1e3de10eff46b80f3dfa63a1d.tar.gz |
lavc/internal: Constify AVPacket* in AVCodecInternal.
Fixes a gcc warning:
libavcodec/utils.c:2244:26: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
Diffstat (limited to 'libavcodec/internal.h')
-rw-r--r-- | libavcodec/internal.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/internal.h b/libavcodec/internal.h index d6e620a983..6e93eeb1a9 100644 --- a/libavcodec/internal.h +++ b/libavcodec/internal.h @@ -141,7 +141,7 @@ typedef struct AVCodecInternal { * Current packet as passed into the decoder, to avoid having to pass the * packet into every function. */ - AVPacket *pkt; + const AVPacket *pkt; /** * temporary buffer used for encoders to store their bitstream |