1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

lavc: do not use AVCodecContext.codec_name in avcodec_string()

That field will be deprecated.
This commit is contained in:
Anton Khirnov 2014-04-29 16:42:07 +02:00
parent ef9732162c
commit e7fc9796d8

View File

@ -1785,8 +1785,6 @@ void avcodec_string(char *buf, int buf_size, AVCodecContext *enc, int encode)
/* fake mpeg2 transport stream codec (currently not
* registered) */
codec_name = "mpeg2ts";
} else if (enc->codec_name[0] != '\0') {
codec_name = enc->codec_name;
} else {
/* output avi tags */
char tag_buf[32];