avfilter/ff_insert_pad: fix order of operations
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 21 Oct 2013 14:21:14 +0000 (16:21 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 8 Mar 2014 15:25:20 +0000 (16:25 +0100)
commit2448c186768608e8f2d102d4dc8c3c931718b976
tree7bec4487f19e97a9894be41b49df0447a03c5c55
parent6f9ae27f5136a29eea18effb033fe9d6f67b892e
avfilter/ff_insert_pad: fix order of operations

Fixes out of bounds access
Fixes CID732170
Fixes CID732169

No filter is known to use this function in a way so the issue can be reproduced.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit ab2bfb85d49b2f8aa505816f93e75fd18ad0a361)

Conflicts:

libavfilter/avfilter.c
(cherry picked from commit 86591b244f3a27293153896813f5569b49b2f5c0)

Conflicts:

libavfilter/avfilter.c
(cherry picked from commit 400c4f8fa3fd58951dc3f356b2b00484e3363694)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavfilter/avfilter.c