Revision 98c82d69 libavcodec/utils.c

View differences:

libavcodec/utils.c
126 126
    case PIX_FMT_YUYV422:
127 127
    case PIX_FMT_UYVY422:
128 128
    case PIX_FMT_YUV422P:
129
    case PIX_FMT_YUV440P:
129 130
    case PIX_FMT_YUV444P:
130 131
    case PIX_FMT_GRAY8:
131 132
    case PIX_FMT_GRAY16BE:
132 133
    case PIX_FMT_GRAY16LE:
133 134
    case PIX_FMT_YUVJ420P:
134 135
    case PIX_FMT_YUVJ422P:
136
    case PIX_FMT_YUVJ440P:
135 137
    case PIX_FMT_YUVJ444P:
136 138
    case PIX_FMT_YUVA420P:
137 139
        w_align= 16; //FIXME check for non mpeg style codecs and use less alignment
138 140
        h_align= 16;
139
        if(s->codec_id == CODEC_ID_MPEG2VIDEO)
141
        if(s->codec_id == CODEC_ID_MPEG2VIDEO || s->codec_id == CODEC_ID_MJPEG || s->codec_id == CODEC_ID_AMV || s->codec_id == CODEC_ID_THP)
140 142
            h_align= 32; // interlaced is rounded up to 2 MBs
141 143
        break;
142 144
    case PIX_FMT_YUV411P:

Also available in: Unified diff