avformat/matroskadec: fix DiscardPadding element parsing
authorJames Almer <jamrial@gmail.com>
Sat, 5 Nov 2016 20:46:52 +0000 (17:46 -0300)
committerJames Almer <jamrial@gmail.com>
Tue, 8 Nov 2016 16:43:53 +0000 (13:43 -0300)
commit70c6a1bcf021b396c9186c4a46dd6c96cc9f59f8
tree6fe4179e298813ac11f59c309e20d929e5340560
parent317be31eaf4f07b3bbeb703e8ee73d04b08a587c
avformat/matroskadec: fix DiscardPadding element parsing

If the value is negative then it means padding at the start of the packet
instead of at the end.

Based on a patch by Hendrik Leppkes.

Reviewed-by: James Zern <jzern-at-google.com@ffmpeg.org>
Signed-off-by: James Almer <jamrial@gmail.com>
libavformat/matroskadec.c