diff options
author | Stephen Hutchinson <qyot27@gmail.com> | 2016-08-30 20:26:08 -0400 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2016-10-27 04:37:57 +0200 |
commit | bf14393635559640f10001fa6af46130cb35fa31 (patch) | |
tree | 73dace8f8d6035195cc201b605b51a8df5eea773 | |
parent | f53c26c694c94bb93fb49d72b6439b792b125fe8 (diff) | |
download | ffmpeg-bf14393635559640f10001fa6af46130cb35fa31.tar.gz |
avisynth: fix Planar RGB output
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r-- | libavformat/avisynth.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavformat/avisynth.c b/libavformat/avisynth.c index 1fe8e083be..1acc44f4c5 100644 --- a/libavformat/avisynth.c +++ b/libavformat/avisynth.c @@ -690,8 +690,10 @@ static int avisynth_read_packet_video(AVFormatContext *s, AVPacket *pkt, #ifdef USING_AVISYNTH /* Flip Planar RGB video. */ if (avsplus && (avs_library.avs_is_planar_rgb(avs->vi) || - avs_library.avs_is_planar_rgba(avs->vi))) + avs_library.avs_is_planar_rgba(avs->vi))) { + src_p = src_p + (planeheight - 1) * pitch; pitch = -pitch; + } #endif avs_library.avs_bit_blt(avs->env, dst_p, rowsize, src_p, pitch, |