[FFmpeg-devel] [PATCH] Use PIX_FMT_BGR24 for the AviSynth demuxer, not PIX_FMT_RGB24.

Paul B Mahol onemda at gmail.com
Sat Mar 30 16:18:47 CET 2013


On 3/30/13, Stephen Hutchinson <qyot27 at gmail.com> wrote:
> ---
>  libavformat/avisynth.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/libavformat/avisynth.c b/libavformat/avisynth.c
> index 3119a45..2d36f65 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;


Note that PIX_FMT_RGB32 is different on big and little endian, so
maybe this one is also incorrect.

> --
> 1.7.10.4
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>


More information about the ffmpeg-devel mailing list