Fixed incorrect av_free
Changed metadata handling, now copies all tags in dictionary
Fixed incorrect reading of subframes, now reads until finished