Merge branch 'v0.18.x'
This commit is contained in:
commit
a9f6556454
2
NEWS
2
NEWS
|
@ -58,6 +58,8 @@ ver 0.19 (not yet released)
|
||||||
* Android port
|
* Android port
|
||||||
|
|
||||||
ver 0.18.13 (not yet released)
|
ver 0.18.13 (not yet released)
|
||||||
|
* decoder
|
||||||
|
- ffmpeg: support ffmpeg/libav version 11
|
||||||
|
|
||||||
ver 0.18.12 (2014/07/30)
|
ver 0.18.12 (2014/07/30)
|
||||||
* database
|
* database
|
||||||
|
|
|
@ -452,9 +452,18 @@ ffmpeg_decode(Decoder &decoder, InputStream &input)
|
||||||
AVStream *av_stream = format_context->streams[audio_stream];
|
AVStream *av_stream = format_context->streams[audio_stream];
|
||||||
|
|
||||||
AVCodecContext *codec_context = av_stream->codec;
|
AVCodecContext *codec_context = av_stream->codec;
|
||||||
|
|
||||||
|
#if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(54, 25, 0)
|
||||||
|
const AVCodecDescriptor *codec_descriptor =
|
||||||
|
avcodec_descriptor_get(codec_context->codec_id);
|
||||||
|
if (codec_descriptor != nullptr)
|
||||||
|
FormatDebug(ffmpeg_domain, "codec '%s'",
|
||||||
|
codec_descriptor->name);
|
||||||
|
#else
|
||||||
if (codec_context->codec_name[0] != 0)
|
if (codec_context->codec_name[0] != 0)
|
||||||
FormatDebug(ffmpeg_domain, "codec '%s'",
|
FormatDebug(ffmpeg_domain, "codec '%s'",
|
||||||
codec_context->codec_name);
|
codec_context->codec_name);
|
||||||
|
#endif
|
||||||
|
|
||||||
AVCodec *codec = avcodec_find_decoder(codec_context->codec_id);
|
AVCodec *codec = avcodec_find_decoder(codec_context->codec_id);
|
||||||
|
|
||||||
|
|
|
@ -33,7 +33,7 @@
|
||||||
#include "Compiler.h"
|
#include "Compiler.h"
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <string.h>
|
#include <strings.h>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Determine whether two strings are equal, ignoring case for ASCII
|
* Determine whether two strings are equal, ignoring case for ASCII
|
||||||
|
|
Loading…
Reference in New Issue