[FFmpeg-cvslog] h263: make default color black, like flv
Michael Niedermayer
git at videolan.org
Sun Nov 20 21:02:19 CET 2011
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun Nov 20 20:40:22 2011 +0100| [15a686b714a2a5a9c0a012458357bf9df8bbdc2d] | committer: Michael Niedermayer
h263: make default color black, like flv
Fixes Ticket126
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=15a686b714a2a5a9c0a012458357bf9df8bbdc2d
---
libavcodec/mpegvideo.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c
index 9ab52ef..6893a3a 100644
--- a/libavcodec/mpegvideo.c
+++ b/libavcodec/mpegvideo.c
@@ -1134,7 +1134,7 @@ int MPV_frame_start(MpegEncContext *s, AVCodecContext *avctx)
if(ff_alloc_picture(s, s->last_picture_ptr, 0) < 0)
return -1;
- if(s->codec_id == CODEC_ID_FLV1){
+ if(s->codec_id == CODEC_ID_FLV1 || s->codec_id == CODEC_ID_H263){
for(i=0; i<s->height; i++)
memset(s->last_picture_ptr->f.data[0] + s->last_picture_ptr->f.linesize[0]*i, 16, s->width);
}
More information about the ffmpeg-cvslog
mailing list