mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-libstb-hal.git
synced 2025-08-26 15:02:43 +02:00
ffmpeg compil versions warnnings
Origin commit data
------------------
Branch: master
Commit: 2c025f2e4f
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2021-10-27 (Wed, 27 Oct 2021)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -2288,9 +2288,11 @@ int32_t container_ffmpeg_update_tracks(Context_t *context, char *filename, int32
|
||||
if (track.avCodecCtx)
|
||||
{
|
||||
ffmpeg_printf(10, " Handle inject_as_pcm = %d\n", track.inject_as_pcm);
|
||||
|
||||
#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(59,0,100)
|
||||
AVCodec *codec = avcodec_find_decoder(get_codecpar(stream)->codec_id);
|
||||
|
||||
#else
|
||||
const AVCodec *codec = avcodec_find_decoder(get_codecpar(stream)->codec_id);
|
||||
#endif
|
||||
int errorCode = avcodec_open2(track.avCodecCtx, codec, NULL);
|
||||
if (codec != NULL && !errorCode)
|
||||
{
|
||||
|
Reference in New Issue
Block a user