int bitrate;
int new_line = 0;
AVRational display_aspect_ratio;
+ const AVCodecDescriptor *desc = avcodec_descriptor_get(enc->codec_id);
if (enc->codec)
p = enc->codec;
else
p = avcodec_find_decoder(enc->codec_id);
- if (p) {
- codec_name = p->name;
+ if (p)
profile = av_get_profile_name(p, enc->profile);
+
+ if (desc) {
+ codec_name = desc->name;
} else if (enc->codec_id == AV_CODEC_ID_MPEG2TS) {
/* fake mpeg2 transport stream codec (currently not
* registered) */