1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-04-02 20:35:37 +02:00

lavc: add const to AVCodecContext.codec_descriptor.

This commit is contained in:
Nicolas George 2012-08-13 11:28:10 +02:00
parent 9bb936a80e
commit 2d3acbfe8c
2 changed files with 4 additions and 4 deletions

View File

@ -3042,7 +3042,7 @@ typedef struct AVCodecContext {
* - encoding: unused. * - encoding: unused.
* - decoding: set by libavcodec. * - decoding: set by libavcodec.
*/ */
AVCodecDescriptor *codec_descriptor; const AVCodecDescriptor *codec_descriptor;
/** /**
* Current statistics for PTS correction. * Current statistics for PTS correction.
@ -3058,8 +3058,8 @@ typedef struct AVCodecContext {
AVRational av_codec_get_pkt_timebase (const AVCodecContext *avctx); AVRational av_codec_get_pkt_timebase (const AVCodecContext *avctx);
void av_codec_set_pkt_timebase (AVCodecContext *avctx, AVRational val); void av_codec_set_pkt_timebase (AVCodecContext *avctx, AVRational val);
AVCodecDescriptor *av_codec_get_codec_descriptor(const AVCodecContext *avctx); const AVCodecDescriptor *av_codec_get_codec_descriptor(const AVCodecContext *avctx);
void av_codec_set_codec_descriptor(AVCodecContext *avctx, AVCodecDescriptor *desc); void av_codec_set_codec_descriptor(AVCodecContext *avctx, const AVCodecDescriptor *desc);
/** /**
* AVProfile. * AVProfile.

View File

@ -712,7 +712,7 @@ MAKE_ACCESSORS(AVFrame, frame, AVDictionary *, metadata)
MAKE_ACCESSORS(AVFrame, frame, int, decode_error_flags) MAKE_ACCESSORS(AVFrame, frame, int, decode_error_flags)
MAKE_ACCESSORS(AVCodecContext, codec, AVRational, pkt_timebase) MAKE_ACCESSORS(AVCodecContext, codec, AVRational, pkt_timebase)
MAKE_ACCESSORS(AVCodecContext, codec, AVCodecDescriptor*, codec_descriptor) MAKE_ACCESSORS(AVCodecContext, codec, const AVCodecDescriptor *, codec_descriptor)
static void avcodec_get_subtitle_defaults(AVSubtitle *sub) static void avcodec_get_subtitle_defaults(AVSubtitle *sub)
{ {