mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
common/av_common: constify mp_codec_params related getters
They should not be modifying the argument, so clearly marking it as const makes sure we don't do it in the future as well as allows for read-only optimizations.
This commit is contained in:
@@ -33,9 +33,9 @@ struct mp_log;
|
||||
|
||||
int mp_lavc_set_extradata(AVCodecContext *avctx, void *ptr, int size);
|
||||
enum AVMediaType mp_to_av_stream_type(int type);
|
||||
AVCodecParameters *mp_codec_params_to_av(struct mp_codec_params *c);
|
||||
int mp_set_avctx_codec_headers(AVCodecContext *avctx, struct mp_codec_params *c);
|
||||
AVRational mp_get_codec_timebase(struct mp_codec_params *c);
|
||||
AVCodecParameters *mp_codec_params_to_av(const struct mp_codec_params *c);
|
||||
int mp_set_avctx_codec_headers(AVCodecContext *avctx, const struct mp_codec_params *c);
|
||||
AVRational mp_get_codec_timebase(const struct mp_codec_params *c);
|
||||
void mp_set_av_packet(AVPacket *dst, struct demux_packet *mpkt, AVRational *tb);
|
||||
int64_t mp_pts_to_av(double mp_pts, AVRational *tb);
|
||||
double mp_pts_from_av(int64_t av_pts, AVRational *tb);
|
||||
|
||||
Reference in New Issue
Block a user