You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-06-30 22:24:04 +02:00
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]
This commit is contained in:
@ -141,7 +141,7 @@ typedef struct AVCodecInternal {
|
|||||||
* Current packet as passed into the decoder, to avoid having to pass the
|
* Current packet as passed into the decoder, to avoid having to pass the
|
||||||
* packet into every function.
|
* packet into every function.
|
||||||
*/
|
*/
|
||||||
AVPacket *pkt;
|
const AVPacket *pkt;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* temporary buffer used for encoders to store their bitstream
|
* temporary buffer used for encoders to store their bitstream
|
||||||
|
@ -745,7 +745,7 @@ int avcodec_default_get_buffer2(AVCodecContext *avctx, AVFrame *frame, int flags
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static int add_metadata_from_side_data(AVPacket *avpkt, AVFrame *frame)
|
static int add_metadata_from_side_data(const AVPacket *avpkt, AVFrame *frame)
|
||||||
{
|
{
|
||||||
int size;
|
int size;
|
||||||
const uint8_t *side_metadata;
|
const uint8_t *side_metadata;
|
||||||
@ -759,7 +759,7 @@ static int add_metadata_from_side_data(AVPacket *avpkt, AVFrame *frame)
|
|||||||
|
|
||||||
int ff_init_buffer_info(AVCodecContext *avctx, AVFrame *frame)
|
int ff_init_buffer_info(AVCodecContext *avctx, AVFrame *frame)
|
||||||
{
|
{
|
||||||
AVPacket *pkt = avctx->internal->pkt;
|
const AVPacket *pkt = avctx->internal->pkt;
|
||||||
int i;
|
int i;
|
||||||
static const struct {
|
static const struct {
|
||||||
enum AVPacketSideDataType packet;
|
enum AVPacketSideDataType packet;
|
||||||
|
Reference in New Issue
Block a user