Commit d2f6f270 authored by michaelni's avatar michaelni

rgb15 & rgb16 fix


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@1921 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent db107e05
......@@ -157,8 +157,9 @@ int avcodec_default_get_buffer(AVCodecContext *s, AVFrame *pic){
int w, h, pixel_size;
avcodec_get_chroma_sub_sample(s->pix_fmt, &h_chroma_shift, &v_chroma_shift);
switch(s->pix_fmt){
case PIX_FMT_RGB555:
case PIX_FMT_RGB565:
case PIX_FMT_YUV422:
pixel_size=2;
break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment