lavc: Add coded bitstream read/write API