mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-26 15:02:58 +02:00
unnecessary brackets removed
- distinction ffmpeg versions
This commit is contained in:
@@ -300,7 +300,7 @@ AVCodecContext* open_codec(AVMediaType mediaType, AVFormatContext* formatContext
|
||||
AVCodec * codec = NULL;
|
||||
AVCodecContext * codecContext = NULL;
|
||||
int stream_index;
|
||||
#if (LIBAVFORMAT_VERSION_INT < AV_VERSION_INT( 57,25,101 ))
|
||||
#if LIBAVFORMAT_VERSION_INT < AV_VERSION_INT(57,25,101)
|
||||
stream_index = av_find_best_stream(formatContext, mediaType, -1, -1, NULL, 0);
|
||||
if (stream_index >=0 ){
|
||||
codecContext = formatContext->streams[stream_index]->codec;
|
||||
@@ -360,7 +360,7 @@ int image_to_mpeg2(const char *image_name, const char *encode_name)
|
||||
av_packet_unref(&packet);
|
||||
}
|
||||
avcodec_close(codecContext);
|
||||
#if (LIBAVFORMAT_VERSION_INT > AV_VERSION_INT( 57,25,100 ))
|
||||
#if LIBAVFORMAT_VERSION_INT > AV_VERSION_INT(57,25,100)
|
||||
avcodec_free_context(&codecContext);
|
||||
#endif
|
||||
}
|
||||
|
Reference in New Issue
Block a user