avutil/tx: should check against (*ctx)