Merge remote-tracking branch 'qatar/master'
* qatar/master: ppc: drop unused function dct_quantize_altivec() mpegaudiodec: Do not discard mp_decode_frame() return value. matroska: do not set invalid default duration if frame rate is zero mkv: use av_reduce instead of av_d2q for framerate estimation mkv: report average framerate as minimal as well avcodec_string: Favor AVCodecContext.codec over the default codec. cook: Make constants passed to AV_BE2NE32C() unsigned to avoid signed overflow. Conflicts: libavcodec/cook.c libavcodec/ppc/mpegvideo_altivec.c libavcodec/utils.c libavformat/matroskadec.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -1757,8 +1757,11 @@ void avcodec_string(char *buf, int buf_size, AVCodecContext *enc, int encode)
|
||||
codec_type = av_get_media_type_string(enc->codec_type);
|
||||
codec_name = avcodec_get_name(enc->codec_id);
|
||||
if (enc->profile != FF_PROFILE_UNKNOWN) {
|
||||
p = encode ? avcodec_find_encoder(enc->codec_id) :
|
||||
avcodec_find_decoder(enc->codec_id);
|
||||
if (enc->codec)
|
||||
p = enc->codec;
|
||||
else
|
||||
p = encode ? avcodec_find_encoder(enc->codec_id) :
|
||||
avcodec_find_decoder(enc->codec_id);
|
||||
if (p)
|
||||
profile = av_get_profile_name(p, enc->profile);
|
||||
}
|
||||
|
Reference in New Issue
Block a user