rgb15 & rgb16 fix
Originally committed as revision 1921 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
61ccfcc009
commit
ba88675b1d
@ -157,8 +157,9 @@ int avcodec_default_get_buffer(AVCodecContext *s, AVFrame *pic){
|
|||||||
int w, h, pixel_size;
|
int w, h, pixel_size;
|
||||||
|
|
||||||
avcodec_get_chroma_sub_sample(s->pix_fmt, &h_chroma_shift, &v_chroma_shift);
|
avcodec_get_chroma_sub_sample(s->pix_fmt, &h_chroma_shift, &v_chroma_shift);
|
||||||
|
|
||||||
switch(s->pix_fmt){
|
switch(s->pix_fmt){
|
||||||
|
case PIX_FMT_RGB555:
|
||||||
|
case PIX_FMT_RGB565:
|
||||||
case PIX_FMT_YUV422:
|
case PIX_FMT_YUV422:
|
||||||
pixel_size=2;
|
pixel_size=2;
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user