Revision 7c7d3abf

View differences:

libavcodec/motionpixels.c
112 112
    mp->offset_bits_len = av_log2(avctx->width * avctx->height) + 1;
113 113
    mp->vpt = av_mallocz(avctx->height * sizeof(YuvPixel));
114 114
    mp->hpt = av_mallocz(avctx->height * avctx->width / 16 * sizeof(YuvPixel));
115
    avctx->pix_fmt = PIX_FMT_RGB555;
115 116
    return 0;
116 117
}
117 118

  
libavformat/mvi.c
86 86
    av_set_pts_info(vst, 64, msecs_per_frame, 1000000);
87 87
    vst->codec->codec_type = CODEC_TYPE_VIDEO;
88 88
    vst->codec->codec_id   = CODEC_ID_MOTIONPIXELS;
89
    vst->codec->pix_fmt    = PIX_FMT_RGB555;
90 89

  
91 90
    mvi->get_int = (vst->codec->width * vst->codec->height < (1 << 16)) ? get_le16 : get_le24;
92 91

  

Also available in: Unified diff