comparison utils.c @ 2636:2344c6713011 libavcodec

print pix_fmt if its known instead of if the raw codec is used
author michael
date Mon, 25 Apr 2005 18:41:38 +0000
parents eaa57c3336fc
children ef44d24680d1
comparison
equal deleted inserted replaced
2635:eaa57c3336fc 2636:2344c6713011
723 switch(enc->codec_type) { 723 switch(enc->codec_type) {
724 case CODEC_TYPE_VIDEO: 724 case CODEC_TYPE_VIDEO:
725 snprintf(buf, buf_size, 725 snprintf(buf, buf_size,
726 "Video: %s%s", 726 "Video: %s%s",
727 codec_name, enc->mb_decision ? " (hq)" : ""); 727 codec_name, enc->mb_decision ? " (hq)" : "");
728 if (enc->codec_id == CODEC_ID_RAWVIDEO) { 728 if (enc->pix_fmt != PIX_FMT_NONE) {
729 snprintf(buf + strlen(buf), buf_size - strlen(buf), 729 snprintf(buf + strlen(buf), buf_size - strlen(buf),
730 ", %s", 730 ", %s",
731 avcodec_get_pix_fmt_name(enc->pix_fmt)); 731 avcodec_get_pix_fmt_name(enc->pix_fmt));
732 } 732 }
733 if (enc->width) { 733 if (enc->width) {