Commit 8cd7aab1 authored by Stephen Hutchinson's avatar Stephen Hutchinson Committed by Michael Niedermayer

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: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 34ea5f41
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment