demux: mkv: simplify block handling
commit5feb3a0476643324f8e418c89abb44b61cf75cae
authorFilip Roséen <filip@atch.se>
Mon, 16 Jul 2018 03:19:51 +0000 (16 05:19 +0200)
committerSteve Lhomme <robux4@ycbcr.xyz>
Mon, 16 Jul 2018 10:45:09 +0000 (16 12:45 +0200)
tree3f9aec427d206993b5c9e48c858cdae24ec2ea4c
parent6d83d2a6d59092892a9db4fcc4b462ea45fb945d
demux: mkv: simplify block handling

As KaxSimpleBlock and KaxBlock inherit from the same base we can get
rid of all these nasty if-else's by creating an object that refers to
the one we are interested in.

Signed-off-by: Steve Lhomme <robux4@ycbcr.xyz>
modules/demux/mkv/matroska_segment_seeker.cpp
modules/demux/mkv/mkv.cpp