Commit e13caffb authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

avcodec: constify decoder_sys_t.p_codec

parent 98ce8407
......@@ -236,7 +236,7 @@ static int GetAudioBuf( AVCodecContext *ctx, AVFrame *buf )
* The avcodec codec will be opened, some memory allocated.
*****************************************************************************/
int InitAudioDec( decoder_t *p_dec, AVCodecContext *p_context,
AVCodec *p_codec, int i_codec_id, const char *psz_namecodec )
const AVCodec *p_codec, int i_codec_id, const char *psz_namecodec )
{
decoder_sys_t *p_sys;
......
......@@ -252,7 +252,7 @@ static int OpenDecoder( vlc_object_t *p_this )
const char *psz_namecodec;
AVCodecContext *p_context = NULL;
AVCodec *p_codec = NULL;
const AVCodec *p_codec = NULL;
/* *** determine codec type *** */
if( !GetFfmpegCodec( p_dec->fmt_in.i_codec, &i_cat, &i_codec_id,
......
......@@ -45,16 +45,16 @@ void CloseDeinterlace( vlc_object_t * );
/* Video Decoder */
int InitVideoDec( decoder_t *p_dec, AVCodecContext *p_context,
AVCodec *p_codec, int i_codec_id, const char *psz_namecodec );
const AVCodec *p_codec, int i_codec_id, const char *psz_namecodec );
void EndVideoDec( decoder_t *p_dec );
/* Audio Decoder */
int InitAudioDec( decoder_t *p_dec, AVCodecContext *p_context,
AVCodec *p_codec, int i_codec_id, const char *psz_namecodec );
const AVCodec *p_codec, int i_codec_id, const char *psz_namecodec );
/* Subtitle Decoder */
int InitSubtitleDec( decoder_t *p_dec, AVCodecContext *p_context,
AVCodec *p_codec, int i_codec_id, const char *psz_namecodec );
const AVCodec *p_codec, int i_codec_id, const char *psz_namecodec );
/* Initialize decoder */
int ffmpeg_OpenCodec( decoder_t *p_dec );
......@@ -246,7 +246,7 @@ int ffmpeg_OpenCodec( decoder_t *p_dec );
int i_codec_id; \
const char *psz_namecodec; \
AVCodecContext *p_context; \
AVCodec *p_codec; \
const AVCodec *p_codec; \
bool b_delayed_open;
#ifndef AV_VERSION_INT
......
......@@ -50,7 +50,7 @@ static subpicture_t *DecodeSubtitle(decoder_t *, block_t **);
* Initialize subtitle decoder
*/
int InitSubtitleDec(decoder_t *dec, AVCodecContext *context,
AVCodec *codec, int codec_id, const char *namecodec)
const AVCodec *codec, int codec_id, const char *namecodec)
{
decoder_sys_t *sys;
......
......@@ -258,7 +258,7 @@ static int OpenVideoCodec( decoder_t *p_dec )
* opened (done after the first decoded frame).
*****************************************************************************/
int InitVideoDec( decoder_t *p_dec, AVCodecContext *p_context,
AVCodec *p_codec, int i_codec_id, const char *psz_namecodec )
const AVCodec *p_codec, int i_codec_id, const char *psz_namecodec )
{
decoder_sys_t *p_sys;
int i_val;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment