mirror of
				https://github.com/nyanmisaka/ffmpeg-rockchip.git
				synced 2025-10-31 20:42:49 +08:00 
			
		
		
		
	avcodec/utils: print only the padding values that are set
Reviewed-by: Carl Eugen Hoyos <ceffmpeg@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
		| @@ -3258,10 +3258,13 @@ void avcodec_string(char *buf, int buf_size, AVCodecContext *enc, int encode) | |||||||
|             && enc->bits_per_raw_sample != av_get_bytes_per_sample(enc->sample_fmt) * 8) |             && enc->bits_per_raw_sample != av_get_bytes_per_sample(enc->sample_fmt) * 8) | ||||||
|             snprintf(buf + strlen(buf), buf_size - strlen(buf), |             snprintf(buf + strlen(buf), buf_size - strlen(buf), | ||||||
|                      " (%d bit)", enc->bits_per_raw_sample); |                      " (%d bit)", enc->bits_per_raw_sample); | ||||||
|         if (av_log_get_level() >= AV_LOG_VERBOSE && |         if (av_log_get_level() >= AV_LOG_VERBOSE) { | ||||||
|             (enc->initial_padding || enc->trailing_padding)) { |             if (enc->initial_padding) | ||||||
|             snprintf(buf + strlen(buf), buf_size - strlen(buf), |                 snprintf(buf + strlen(buf), buf_size - strlen(buf), | ||||||
|                      ", delay %d, padding %d", enc->initial_padding, enc->trailing_padding); |                          ", delay %d", enc->initial_padding); | ||||||
|  |             if (enc->trailing_padding) | ||||||
|  |                 snprintf(buf + strlen(buf), buf_size - strlen(buf), | ||||||
|  |                          ", padding %d", enc->trailing_padding); | ||||||
|         } |         } | ||||||
|         break; |         break; | ||||||
|     case AVMEDIA_TYPE_DATA: |     case AVMEDIA_TYPE_DATA: | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 James Almer
					James Almer