diff options
author | Roberto Togni <r_togni@tiscali.it> | 2004-06-27 11:07:05 +0000 |
---|---|---|
committer | Roberto Togni <r_togni@tiscali.it> | 2004-06-27 11:07:05 +0000 |
commit | d99fbbf4d7e3f6abea0d052849a515730f552608 (patch) | |
tree | 4f419f7bce4252cb9d8279342ef62445e0458a80 /libavcodec/utils.c | |
parent | 44602899110061164476496fb48f06c40fe06132 (diff) | |
download | ffmpeg-streaming-d99fbbf4d7e3f6abea0d052849a515730f552608.zip ffmpeg-streaming-d99fbbf4d7e3f6abea0d052849a515730f552608.tar.gz |
Force alignement for rpza and smc
Originally committed as revision 3262 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/utils.c')
-rw-r--r-- | libavcodec/utils.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c index 4fdd0c2..be399e9 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -159,6 +159,16 @@ void avcodec_align_dimensions(AVCodecContext *s, int *width, int *height){ w_align=64; h_align=64; } + case PIX_FMT_RGB555: + if(s->codec_id == CODEC_ID_RPZA){ + w_align=4; + h_align=4; + } + case PIX_FMT_PAL8: + if(s->codec_id == CODEC_ID_SMC){ + w_align=4; + h_align=4; + } break; default: w_align= 1; |