aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2024-03-02 21:40:10 -0300
committerJames Almer <jamrial@gmail.com>2024-03-02 21:41:09 -0300
commitf8caf388fb80c109909e1e6365d4b814291156e0 (patch)
treeb01b07bc6a07543d3af0bf21f114c82931f73f36
parent3a09c2122d1f77c3e14c43855b21ef1da9f7fa27 (diff)
downloadffmpeg-f8caf388fb80c109909e1e6365d4b814291156e0.tar.gz
avformat/iamf_writer: constify some function parameters
Signed-off-by: James Almer <jamrial@gmail.com>
-rw-r--r--libavformat/iamf_writer.c4
-rw-r--r--libavformat/iamf_writer.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/libavformat/iamf_writer.c b/libavformat/iamf_writer.c
index 9ed20fc562..18dc0e284b 100644
--- a/libavformat/iamf_writer.c
+++ b/libavformat/iamf_writer.c
@@ -979,7 +979,7 @@ static int write_parameter_block(const IAMFContext *iamf, AVIOContext *pb,
}
int ff_iamf_write_parameter_blocks(const IAMFContext *iamf, AVIOContext *pb,
- AVPacket *pkt, void *log_ctx)
+ const AVPacket *pkt, void *log_ctx)
{
AVIAMFParamDefinition *mix =
(AVIAMFParamDefinition *)av_packet_get_side_data(pkt,
@@ -1014,7 +1014,7 @@ int ff_iamf_write_parameter_blocks(const IAMFContext *iamf, AVIOContext *pb,
}
int ff_iamf_write_audio_frame(const IAMFContext *iamf, AVIOContext *pb,
- unsigned audio_substream_id, AVPacket *pkt)
+ unsigned audio_substream_id, const AVPacket *pkt)
{
uint8_t header[MAX_IAMF_OBU_HEADER_SIZE];
PutBitContext pbc;
diff --git a/libavformat/iamf_writer.h b/libavformat/iamf_writer.h
index 8e2949d8f2..05f3d322b8 100644
--- a/libavformat/iamf_writer.h
+++ b/libavformat/iamf_writer.h
@@ -35,8 +35,8 @@ int ff_iamf_add_mix_presentation(IAMFContext *iamf, const AVStreamGroup *stg, vo
int ff_iamf_write_descriptors(const IAMFContext *iamf, AVIOContext *pb, void *log_ctx);
int ff_iamf_write_parameter_blocks(const IAMFContext *iamf, AVIOContext *pb,
- AVPacket *pkt, void *log_ctx);
+ const AVPacket *pkt, void *log_ctx);
int ff_iamf_write_audio_frame(const IAMFContext *iamf, AVIOContext *pb,
- unsigned audio_substream_id, AVPacket *pkt);
+ unsigned audio_substream_id, const AVPacket *pkt);
#endif /* AVFORMAT_IAMF_WRITER_H */