put wtv specific dump in WTV_DEBUG macro
removed global buffer
pass subtitle in write_cc_buffer from general loop
pass subtitle in write_cc_buffer from general loop
init encoder and dinit encoder have more function
set size at correct place
corrected timing for ts file