mirror of
				https://github.com/nyanmisaka/ffmpeg-rockchip.git
				synced 2025-10-27 02:41:54 +08:00 
			
		
		
		
	avcodec_string: Favor AVCodecContext.codec over the default codec.
This improves output for formats with more than one AVCodec.
This commit is contained in:
		| @@ -1498,7 +1498,9 @@ void avcodec_string(char *buf, int buf_size, AVCodecContext *enc, int encode) | ||||
|     int bitrate; | ||||
|     AVRational display_aspect_ratio; | ||||
|  | ||||
|     if (encode) | ||||
|     if (enc->codec) | ||||
|         p = enc->codec; | ||||
|     else if (encode) | ||||
|         p = avcodec_find_encoder(enc->codec_id); | ||||
|     else | ||||
|         p = avcodec_find_decoder(enc->codec_id); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Alex Converse
					Alex Converse