From 8cd7aab1bb29ac28c13a44a37546d93d91ac7814 Mon Sep 17 00:00:00 2001 From: Stephen Hutchinson Date: Sat, 30 Mar 2013 17:34:45 -0400 Subject: Use PIX_FMT_BGR24 for the AviSynth demuxer, instead of RGB24. Partial fix for ticket #2412 in that using PIX_FMT_BGR24 fixes the swapped channels issue when using scripts serving RGB24. Signed-off-by: Michael Niedermayer --- libavformat/avisynth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavformat/avisynth.c') diff --git a/libavformat/avisynth.c b/libavformat/avisynth.c index 3119a45204..2d36f6533c 100644 --- a/libavformat/avisynth.c +++ b/libavformat/avisynth.c @@ -256,7 +256,7 @@ static int avisynth_create_stream_video(AVFormatContext *s, AVStream *st) { break; #endif case AVS_CS_BGR24: - st->codec->pix_fmt = PIX_FMT_RGB24; + st->codec->pix_fmt = PIX_FMT_BGR24; break; case AVS_CS_BGR32: st->codec->pix_fmt = PIX_FMT_RGB32; -- cgit v1.2.3