Look at the code for VLC. What you want to do is very complex unless you just want to decode one variety of media. Personally, after 30+ years developing C code, and 20+ years C++, I would not try to do that without resorting to other API's to handle different media types (mpeg1/2 vs mpeg4 vs wmv, vs mkv, etc). You do say your are trying to make an MKV media player. That may be doable since MKV is open source and the specs are not patent-encumbered. Again, review existing open source implementations to help you understand what is needed to be done. I would advice that you go to www.videolan.org (the VLC project site) for sources and help.
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster
cereal commented: nice explanation +9
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster
np complete commented: cool :) +3
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster
silvercats commented: woha +0
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster
Carpetfizz commented: why the downvotes? i think his analogy is pretty helpful... +0
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster
sblass92 commented: Yep, works like I want, thanks! +0
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster
Daniel Jones commented: Thanks rubberman +0
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster
mike_2000_17 commented: 10M LOCs no deletes? That's how it should be! But, isn't there one delete in the smart-pointer definition? +13
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster
Xyzyxx commented: Sums it up perfectly :) +0
el33t commented: Thanks! This solved my problem! +0
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster