aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Hutchinson <qyot27@gmail.com>2013-03-30 17:34:45 -0400
committerMichael Niedermayer <michaelni@gmx.at>2013-03-31 01:09:33 +0100
commit8cd7aab1bb29ac28c13a44a37546d93d91ac7814 (patch)
treea16a8a9b99d80ca95fe3db7a5c5c981b6b7f0845
parent34ea5f418ef815c629b6ab38a6a2711fd7463290 (diff)
downloadffmpeg-8cd7aab1bb29ac28c13a44a37546d93d91ac7814.tar.gz
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 <michaelni@gmx.at>
-rw-r--r--libavformat/avisynth.c2
1 files changed, 1 insertions, 1 deletions
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;