Add open_codec procedure
Add representation clause for AVSubtitle
Subtitles parser workd
Fix all memory leaks.