diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2003-05-30 13:27:21 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2003-05-30 13:27:21 +0000 |
commit | ba88675b1d2a381abf5fe40250786dfc960969e0 (patch) | |
tree | 9261cb94e1c39b0dbcbaa06d332e78a535dd11ea | |
parent | 61ccfcc00950ae53725abc50435b2cce72ec8deb (diff) | |
download | ffmpeg-ba88675b1d2a381abf5fe40250786dfc960969e0.tar.gz |
rgb15 & rgb16 fix
Originally committed as revision 1921 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/utils.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c index 8c529c53f1..3a30e734e4 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -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; |