From 15a686b714a2a5a9c0a012458357bf9df8bbdc2d Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sun, 20 Nov 2011 20:40:22 +0100 Subject: [PATCH] h263: make default color black, like flv Fixes Ticket126 Signed-off-by: Michael Niedermayer --- libavcodec/mpegvideo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c index 9ab52efd1f7..6893a3a8cd0 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; iheight; i++) memset(s->last_picture_ptr->f.data[0] + s->last_picture_ptr->f.linesize[0]*i, 16, s->width); } -- 2.39.2