mirror of
https://github.com/vgmstream/vgmstream.git
synced 2024-11-29 00:34:33 +01:00
Remove some minor deprecated warnings
Tested with all major codecs we use for FFmpeg, all decode the same
This commit is contained in:
parent
2c917c0792
commit
9333a22c16
@ -24,7 +24,7 @@ static void g_init_ffmpeg() {
|
||||
g_ffmpeg_initialized = 1;
|
||||
av_log_set_flags(AV_LOG_SKIP_REPEATED);
|
||||
av_log_set_level(AV_LOG_ERROR);
|
||||
av_register_all();
|
||||
//av_register_all(); /* not needed in newer versions */
|
||||
g_ffmpeg_initialized = 2;
|
||||
}
|
||||
}
|
||||
@ -434,7 +434,7 @@ ffmpeg_codec_data * init_ffmpeg_config(STREAMFILE *streamFile, uint8_t * header,
|
||||
|
||||
if ((errcode = avcodec_parameters_to_context(data->codecCtx, codecPar)) < 0) goto fail;
|
||||
|
||||
av_codec_set_pkt_timebase(data->codecCtx, stream->time_base);
|
||||
//av_codec_set_pkt_timebase(data->codecCtx, stream->time_base); /* deprecated and seemingly not needed */
|
||||
|
||||
data->codec = avcodec_find_decoder(data->codecCtx->codec_id);
|
||||
if (!data->codec) goto fail;
|
||||
|
Loading…
Reference in New Issue
Block a user