projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4460289
)
Force alignement for rpza and smc
author
Roberto Togni
<r_togni@tiscali.it>
Sun, 27 Jun 2004 11:07:05 +0000
(11:07 +0000)
committer
Roberto Togni
<r_togni@tiscali.it>
Sun, 27 Jun 2004 11:07:05 +0000
(11:07 +0000)
Originally committed as revision 3262 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/utils.c
patch
|
blob
|
history
diff --git
a/libavcodec/utils.c
b/libavcodec/utils.c
index
4fdd0c2
..
be399e9
100644
(file)
--- 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;