libavcodec API : add thread_ctx_frame and thread_count_frame
libavcodec: does not break API