aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorStephen Hutchinson <qyot27@gmail.com>2016-08-30 20:26:08 -0400
committerMichael Niedermayer <michael@niedermayer.cc>2016-10-27 17:24:04 +0200
commitebf8ec5b0fdc0b79602312feecbe9f1797e90033 (patch)
tree1c8cb83d80b7d2c33225fde03d714b5e36072146 /libavformat
parent548242d1a1ec55ad1f0b045621996c560cf047a0 (diff)
downloadffmpeg-3bd40888f773db264a0e6c1a1ef3531314d92d94.tar.gz
avisynth: fix Planar RGB outputn3.2
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit bf14393635559640f10001fa6af46130cb35fa31) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/avisynth.c4
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,