[FFmpeg-cvslog] lavc: horizontal align for IFF
Michael Niedermayer
git at videolan.org
Wed Nov 30 18:54:44 CET 2011
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Nov 30 18:45:33 2011 +0100| [fd3e75d2d461725ffd0f5f86a7710062d6c7956c] | committer: Michael Niedermayer
lavc: horizontal align for IFF
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=fd3e75d2d461725ffd0f5f86a7710062d6c7956c
---
libavcodec/utils.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index 979b27a..a601ec8 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -203,6 +203,10 @@ void avcodec_align_dimensions2(AVCodecContext *s, int *width, int *height, int l
break;
}
+ if(s->codec_id == CODEC_ID_IFF_ILBM || s->codec_id == CODEC_ID_IFF_BYTERUN1){
+ w_align= FFMAX(w_align, 8);
+ }
+
*width = FFALIGN(*width , w_align);
*height= FFALIGN(*height, h_align);
if(s->codec_id == CODEC_ID_H264 || s->lowres)
More information about the ffmpeg-cvslog
mailing list