Revision bebe72f4 libavutil/utils.c

View differences:

libavutil/utils.c
39 39
#define LICENSE_PREFIX "libavutil license: "
40 40
    return LICENSE_PREFIX LIBAV_LICENSE + sizeof(LICENSE_PREFIX) - 1;
41 41
}
42

  
43
char av_get_picture_type_char(enum AVPictureType pict_type)
44
{
45
    switch (pict_type) {
46
    case AV_PICTURE_TYPE_I:  return 'I';
47
    case AV_PICTURE_TYPE_P:  return 'P';
48
    case AV_PICTURE_TYPE_B:  return 'B';
49
    case AV_PICTURE_TYPE_S:  return 'S';
50
    case AV_PICTURE_TYPE_SI: return 'i';
51
    case AV_PICTURE_TYPE_SP: return 'p';
52
    case AV_PICTURE_TYPE_BI: return 'b';
53
    default:                 return '?';
54
    }
55
}

Also available in: Unified diff